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.
Scenario: - Switch off 'Possible Compile Issues', 'General', 'Suggestions' and 'C Library Functions' hints - Switch on 'Clank Diagnostics (Experimental)' hints - Create C/C++ project with newmain.cpp - Create New File wizard - Select C++/C++ Class and press Next button - Set Class Name = TestItem - Press Finish button - Add "TestItem t;" into newmain.cpp - Close all files in editor - Rebuild project - Open TestItem.h ===> 'unknown type name 'class' error in editor
Created attachment 164946 [details] sample
this is actually the duplicate of bz#271290 the fix is to send -std=c++11 -stdlib=libstdc++ to the clang. Not sure how I will implement it yet but fix workaround with adding it these options to the Editor->Hints->C/C++->Clank Diagnostics (Experimental) fixes the problem *** This bug has been marked as a duplicate of bug 271290 ***