This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 249050 - Erroneous error message in C++ code
Summary: Erroneous error message in C++ code
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-01 22:17 UTC by aschwarz1309
Modified: 2015-02-03 17:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (35.04 KB, text/plain)
2014-12-01 22:17 UTC, aschwarz1309
Details

Note You need to log in before you can comment on or make changes to this bug.
Description aschwarz1309 2014-12-01 22:17:41 UTC
Product Version = NetBeans IDE 8.0.2 (Build 201411181905)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_40
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.0-b56
gcc 4.8.3
cygwin

getColumns() is flagged as an error *unable to resolve identifier) in sidebar but compiles and builds correctly. The diagnostic message should be removed.
 
main.cpp
   if (open(filename, *vec)) {
      StringPartition* partition = new StringPartition(vec, debugFlags);
      vec->shrink_to_fit();
      Generate*        hashFunction = new Generate( vec
                                                  , partition->getColumns());
      delete partition;
   }

StringPartition.h

  class StringPartition {
      public:
          vector<long> getColumns() { return columns; }
  }
Comment 1 aschwarz1309 2014-12-01 22:17:48 UTC
Created attachment 150826 [details]
IDE log
Comment 2 petrk 2015-02-03 17:10:47 UTC
As far as I see this is from project which you attached in https://netbeans.org/bugzilla/show_bug.cgi?id=249242? I do not see any errors in it. How can I reproduce the bug? (I use development version)