public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17609] New: spurious error message after using keyword
@ 2004-09-22 12:45 papadopo at shfj dot cea dot fr
  2004-09-22 13:00 ` [Bug c++/17609] [3.4 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: papadopo at shfj dot cea dot fr @ 2004-09-22 12:45 UTC (permalink / raw)
  To: gcc-bugs

The 3.4 C++ compiler emits two errors on the following code. Only the first one
should be emitted (that's the case with gcc 3.3). That's not a serious bug since
the second error message disappears when the first one is fixed, but it's
disturbing nevertheless.

$ cat > foo.cc
#include <iostream>
void function1() {
    cout;
}
using namespace std;
void function2() {
    cout;
}
$ 
$ g++ -c foo.cc
foo.cc: In function `void function1()':
foo.cc:3: error: `cout' undeclared (first use this function)
foo.cc:3: error: (Each undeclared identifier is reported only once for each
function it appears in.)
foo.cc: In function `void function2()':
foo.cc:7: error: `cout' undeclared (first use this function)
$

-- 
           Summary: spurious error message after using keyword
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: papadopo at shfj dot cea dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <bug-17609-469@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2005-10-05 15:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-22 12:45 [Bug c++/17609] New: spurious error message after using keyword papadopo at shfj dot cea dot fr
2004-09-22 13:00 ` [Bug c++/17609] [3.4 Regression] " pinskia at gcc dot gnu dot org
2004-11-01  0:46 ` mmitchel at gcc dot gnu dot org
2005-05-19 17:30 ` mmitchel at gcc dot gnu dot org
2005-09-19 15:46 ` reichelt at gcc dot gnu dot org
2005-09-21 15:08 ` cvs-commit at gcc dot gnu dot org
2005-09-21 15:12 ` reichelt at gcc dot gnu dot org
2005-09-21 15:22 ` cvs-commit at gcc dot gnu dot org
2005-09-21 15:23 ` reichelt at gcc dot gnu dot org
     [not found] <bug-17609-469@http.gcc.gnu.org/bugzilla/>
2005-10-05 15:36 ` cvs-commit at gcc dot gnu dot org
2005-10-05 15:37 ` reichelt 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).