http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
Paolo Carlini paolo.carlini at oracle dot com changed:
What|Removed |Added
Status|NEW |RESOLVED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #9 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org
2012-05-17 18:54:45 UTC ---
Author: paolo
Date: Thu May 17 18:54:37 2012
New Revision: 187634
URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=187634
Log:
/cp
2012-05-17
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
Manuel López-Ibáñez manu at gcc dot gnu.org changed:
What|Removed |Added
Keywords||diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org 2012-05-14
16:07:32 UTC ---
I agree it should be better, but the analogy isn't great: new foo requires
foo to be a type, delete foo requires foo to be a variable.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #8 from Manuel López-Ibáñez manu at gcc dot gnu.org 2012-05-14
16:42:44 UTC ---
(In reply to comment #5)
Like, sorry about my naivete, by adding a cp_parser_skip_to_end_of_statement
or
something right after the error message?!?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #3 from Manuel López-Ibáñez manu at gcc dot gnu.org 2011-10-03
10:07:49 UTC ---
(In reply to comment #2)
Manuel, can I have your opinion about this one?
Since you ask, my opinion is that first there should be only 1 error and not
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #4 from Paolo Carlini paolo.carlini at oracle dot com 2011-10-03
11:08:39 UTC ---
Ok, thanks. Frankly I hadn't noticed the *second* error. The first one seemed
good enough to me, and quite similar to what I saw elsewhere modulo type
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com 2011-10-03
11:13:52 UTC ---
Like, sorry about my naivete, by adding a cp_parser_skip_to_end_of_statement or
something right after the error message?!?
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
Paolo Carlini paolo.carlini at oracle dot com changed:
What|Removed |Added
CC|gcc-bugs at gcc dot gnu.org |manu at
--- Comment #1 from paolo dot carlini at oracle dot com 2009-04-07 15:37
---
FWIW, the EDG C++ front-end issues a very similar error message ;)
39681.C(3): error: expected a type specifier
int* p = new foo;
^
--
10 matches
Mail list logo