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 75751 - cnd/modelimpl has warnings during build
Summary: cnd/modelimpl has warnings during build
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All Solaris
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-01 22:32 UTC by _ gordonp
Modified: 2007-11-02 19:40 UTC (History)
0 users

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 _ gordonp 2006-05-01 22:32:11 UTC
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).
Comment 1 _ gordonp 2006-05-02 18:42:16 UTC
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...
Comment 2 _ gordonp 2006-05-03 00:06:37 UTC
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.
Comment 3 Vladimir Voskresensky 2006-05-06 23:33:54 UTC
fix committed
Comment 4 Vladimir Kvashin 2006-05-10 12:47:13 UTC
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;
Comment 5 Vladimir Voskresensky 2006-05-29 15:29:06 UTC
fixed by checking one token look ahead:
LITERAL_typedef ({LA(1)==LITERAL_typename}? LITERAL_typename)? {td=true;}