c++/9849: malformed template typename produces strange diagnostic

bangerth@dealii.org bangerth@dealii.org
Wed Feb 26 17:06:00 GMT 2003


Synopsis: malformed template typename produces strange diagnostic

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Feb 26 17:06:02 2003
State-Changed-Why:
    Confirmed. 3.4 spits out another set of messages:
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc:8: error: variable or field `foo' declared void
    x.cc:8: error: template declaration of `int foo'
    x.cc:8: error: expected `('
    x.cc:8: error: expected primary-expression
    x.cc:8: error: expected primary-expression
    x.cc:8: error: expected expected `;'
    
    They are so far off the true reason that I consider this
    a bug.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9849



More information about the Gcc-bugs mailing list