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

Summary: "Unable to resolve identifier" for type which is defined in file included inside of namespace
Product: cnd Reporter: marsupilami
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: NEW ---    
Severity: normal CC: marsupilami
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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