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 246282 - "Unable to resolve identifier" for type which is defined in file included inside of namespace
Summary: "Unable to resolve identifier" for type which is defined in file included ins...
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-05 15:28 UTC by marsupilami
Modified: 2014-11-20 12:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marsupilami 2014-08-05 15:28:02 UTC
filea.hpp:
  class test0 {
  }

fileb.hpp:
  #include "filea.hpp"
  
  class test1 {
  }

filec.hpp:
  namespace nametest {
    #include "fileb.hpp"
  }

main.cpp
  #include "filec.hpp"

  nametest::test1 a; //fine
  nametest::test0 b; //unable to resolve identifier test0



compiling results in no error
Comment 1 marsupilami 2014-08-05 15:32:05 UTC
forgot to put semicolons after class definitions in description