public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42067] Misleading error message for misusing a type
[not found] <bug-42067-4@http.gcc.gnu.org/bugzilla/>
@ 2013-06-16 23:05 ` paolo.carlini at oracle dot com
0 siblings, 0 replies; 3+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-06-16 23:05 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42067
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC|gcc-bugs at gcc dot gnu.org |
Known to work| |4.8.0, 4.9.0
Resolution|--- |FIXED
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
I think it's safe to say that this is fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/42067] Misleading error message for misusing a type
2009-11-16 16:59 [Bug c++/42067] New: " jlquinn at optonline dot net
2009-11-16 17:02 ` [Bug c++/42067] " pinskia at gcc dot gnu dot org
@ 2009-11-16 17:05 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-11-16 17:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-11-16 17:04 -------
Comeau online tester gives:
"ComeauTest.c", line 4: error: parameter "string" is not a type name
int fn(string& string, string& head);
Which is only slightly better.
The trunk gives a column number:
t.cc:3:24: error: 'string' is not a type
Which shows where the problem is.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42067
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/42067] Misleading error message for misusing a type
2009-11-16 16:59 [Bug c++/42067] New: " jlquinn at optonline dot net
@ 2009-11-16 17:02 ` pinskia at gcc dot gnu dot org
2009-11-16 17:05 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-11-16 17:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2009-11-16 17:02 -------
Well you are not misusing a type here really.
The second string causes string to be a variable name, so the error message is
correct as it is no longer a type at that point.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42067
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-16 23:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-42067-4@http.gcc.gnu.org/bugzilla/>
2013-06-16 23:05 ` [Bug c++/42067] Misleading error message for misusing a type paolo.carlini at oracle dot com
2009-11-16 16:59 [Bug c++/42067] New: " jlquinn at optonline dot net
2009-11-16 17:02 ` [Bug c++/42067] " pinskia at gcc dot gnu dot org
2009-11-16 17:05 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).