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.
There are currently 3 warnings during compilation of this module. The 1st 2 are from cppjx.g: line 123: warning:did you forget to terminate previous rule? line 138: warning:did you forget to terminate previous rule? The 3rd is from cppparser.g: line 1118: warning:nondeterminism between alts 1 and 2 of block upon k==1:"typename" k==2:"typedef","enum","inline","extern","_inline","__inline","virtual",\ "explicit","friend","_stdcall","__stdcall","typename","auto",\ "register","static","mutable","const","const_cast","volatile",\ "char","wchar_t","bool","short","int","long","signed","unsigned",\ "float","double","void","_declspec","__declspec","class",\ "struct","union","_int64","__int64","__w64",SCOPE,ID The last one is actually 3 lines, which also breaks error parsing (the error parser shows the 1st line as a warning and the 2nd and 3rd as errors).
Vladimir, can this be fixed before Preview 2 code freeze? If not we break the no-warnings rule (but thats better than not getting the language model and code folding problems resolved). Feel free to reassign if you're not the right person...
The choice seems to be to remove this from Preview 2 or risk resolution of critical language model issues. I'll return it to P1 after preview2. It definately should be fixed for preview3.
fix committed
I had to undo the fix concerning 3-rd warning (in cppparser.g), since it breaks functionality in the case of code like follows: class C {}; typedef typename C CC; CC x;
fixed by checking one token look ahead: LITERAL_typedef ({LA(1)==LITERAL_typename}? LITERAL_typename)? {td=true;}