This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/24009] New: [4.1 regression] C++ fails to print #include stack
- From: "gerald at pfeifer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2005 10:34:08 -0000
- Subject: [Bug c++/24009] New: [4.1 regression] C++ fails to print #include stack
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
For the following program
#define _POSIX_C_SOURCE 1
#include <iostream>
g++ issues the following error message:
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../include/c++/4.1.0/cwchar:166:
error: '::vfwscanf' has not been declared
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../include/c++/4.1.0/cwchar:170:
error: '::vswscanf' has not been declared
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../include/c++/4.1.0/cwchar:174:
error: '::vwscanf' has not been declared
/gcc-current/bin/../lib/gcc/i386-unknown-freebsd5.4/4.1.0/../../../../include/c++/4.1.0/cwchar:191:
error: '::wcstof' has not been declared
This bug report is _not_ about the specific error messages as such, but
about the fact that g++ fails to provide the full #include stack, that is,
a) the name of the file compiled, and
b) the name of all the #include files involved which led to this.
Contrast this with the corresponding diagnosis from GCC 3.4:
In file included from /usr/include/c++/3.4/bits/postypes.h:46,
from /usr/include/c++/3.4/iosfwd:50,
from /usr/include/c++/3.4/ios:44,
from /usr/include/c++/3.4/ostream:45,
from /usr/include/c++/3.4/iostream:45,
from x.cc:3:
/usr/include/c++/3.4/cwchar:166: error: `::vfwscanf' has not been declared
/usr/include/c++/3.4/cwchar:170: error: `::vswscanf' has not been declared
/usr/include/c++/3.4/cwchar:174: error: `::vwscanf' has not been declared
/usr/include/c++/3.4/cwchar:191: error: `::wcstof' has not been declared
which is much more useful.
--
Summary: [4.1 regression] C++ fails to print #include stack
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gerald at pfeifer dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24009