http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #9 from 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=gcc&view=rev&rev=187634
Log:
/cp
2012-05-17 Paolo Carlini
PR
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
Paolo Carlini changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #8 from Manuel López-Ibáñez 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?!?
That may work and the
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #7 from Jonathan Wakely 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
Manuel López-Ibáñez changed:
What|Removed |Added
Keywords||diagnostic
Target|i486-
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #5 from Paolo Carlini 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
--- Comment #4 from Paolo Carlini 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
instead of type-specifier. So do
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
--- Comment #3 from Manuel López-Ibáñez 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
two, and bonus points if
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39681
Paolo Carlini changed:
What|Removed |Added
CC|gcc-bugs at gcc dot gnu.org |manu at gcc dot gnu.org
--- Comment #2 fr
--- 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;
^
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=
10 matches
Mail list logo