public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/11881] New: Wrong or confusing error message
@ 2003-08-11 11:20 gcc-bugzilla at gcc dot gnu dot org
2003-08-11 11:49 ` [Bug c++/11881] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2003-08-11 11:20 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11881
Summary: Wrong or confusing error message
Product: gcc
Version: 3.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schnetter at uni-tuebingen dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i386-pc-linux-gnu
GCC host triplet: i386-pc-linux-gnu
GCC target triplet: i386-pc-linux-gnu
I receive the error messsage
$ g++ vv.cc
vv.cc: In constructor `iterator::iterator()':
vv.cc:3: error: syntax error before `;' token
where there is no semicolon in line 3.
Environment:
System: Linux because 2.4.21-3-686 #1 Sun Jul 20 16:11:09 EST 2003 i686 GNU/Linux
Architecture: i686
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i386-linux
How-To-Repeat:
The input file was
class iterator {
int * elt;
iterator () : elt(int*()) { }
int y;
};
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/11881] Wrong or confusing error message
2003-08-11 11:20 [Bug c++/11881] New: Wrong or confusing error message gcc-bugzilla at gcc dot gnu dot org
@ 2003-08-11 11:49 ` pinskia at gcc dot gnu dot org
2003-08-11 11:55 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-11 11:49 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11881
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/11881] Wrong or confusing error message
2003-08-11 11:20 [Bug c++/11881] New: Wrong or confusing error message gcc-bugzilla at gcc dot gnu dot org
2003-08-11 11:49 ` [Bug c++/11881] " pinskia at gcc dot gnu dot org
@ 2003-08-11 11:55 ` pinskia at gcc dot gnu dot org
2003-08-11 11:55 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-11 11:55 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11881
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-08-11 11:55:34
date| |
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-11 11:55 -------
On the mainline GCC gives:
pr11881.cc: In constructor `iterator::iterator()':
pr11881.cc:3: error: expected primary-expression
This is better
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/11881] Wrong or confusing error message
2003-08-11 11:20 [Bug c++/11881] New: Wrong or confusing error message gcc-bugzilla at gcc dot gnu dot org
2003-08-11 11:49 ` [Bug c++/11881] " pinskia at gcc dot gnu dot org
2003-08-11 11:55 ` pinskia at gcc dot gnu dot org
@ 2003-08-11 11:55 ` pinskia at gcc dot gnu dot org
2003-12-28 23:11 ` pinskia at gcc dot gnu dot org
2004-04-27 0:04 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-11 11:55 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11881
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/11881] Wrong or confusing error message
2003-08-11 11:20 [Bug c++/11881] New: Wrong or confusing error message gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2003-08-11 11:55 ` pinskia at gcc dot gnu dot org
@ 2003-12-28 23:11 ` pinskia at gcc dot gnu dot org
2004-04-27 0:04 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-28 23:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-28 23:02 -------
Well the error message now is:
pr11881.cc: In constructor `iterator::iterator()':
pr11881.cc:5: error: expected primary-expression before "int"
But I have not looked to see if it is legal code though.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11881
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/11881] Wrong or confusing error message
2003-08-11 11:20 [Bug c++/11881] New: Wrong or confusing error message gcc-bugzilla at gcc dot gnu dot org
` (3 preceding siblings ...)
2003-12-28 23:11 ` pinskia at gcc dot gnu dot org
@ 2004-04-27 0:04 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-04-27 0:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-04-26 23:50 -------
This is fixed for 3.4.0 as this is invalid code.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11881
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-04-26 23:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-11 11:20 [Bug c++/11881] New: Wrong or confusing error message gcc-bugzilla at gcc dot gnu dot org
2003-08-11 11:49 ` [Bug c++/11881] " pinskia at gcc dot gnu dot org
2003-08-11 11:55 ` pinskia at gcc dot gnu dot org
2003-08-11 11:55 ` pinskia at gcc dot gnu dot org
2003-12-28 23:11 ` pinskia at gcc dot gnu dot org
2004-04-27 0:04 ` 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).