This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16002] New: [3.4 regression] Strange error message with new parser


void foo(void)
{
        double Q *= 5.0;
}

causes gcc 3.4 to print (same for mainline)

te.cpp: In function `void foo()':
te.cpp:3: error: expected primary-expression before "double"
te.cpp:3: error: expected `;' before "double"

while 3.3.4 printed the clearly superior

te.cpp: In function `void foo()':
te.cpp:3: error: parse error before `*=' token

EDG is even better

te.cpp(3): error: expected a ";"
  	double Q *= 5.0;
  	         ^

-- 
           Summary: [3.4 regression] Strange error message with new parser
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at tat dot physik dot uni-tuebingen dot de
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16002


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]