void foo(){ int a = b; } gets you:
foo.cc: In function `void foo()': foo.cc:1: error: `b' undeclared (first use this function) foo.cc:1: error: (Each undeclared identifier is reported only once for each function it appears in.) Other informative notes are labeled "note:". Because this is labelled "error", scripts that scan generated compiler output to count errors get wrong counts. Ivan -- Summary: diagnostic informative note labelled "error" Product: gcc Version: 3.4.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: igodard at pacbell dot net http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24577