public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24009] New: [4.1 regression] C++ fails to print #include stack
@ 2005-09-22 10:34 gerald at pfeifer dot com
  2005-09-22 15:06 ` [Bug c++/24009] [4.0/4.1 " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gerald at pfeifer dot com @ 2005-09-22 10:34 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-09-27 16:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-22 10:34 [Bug c++/24009] New: [4.1 regression] C++ fails to print #include stack gerald at pfeifer dot com
2005-09-22 15:06 ` [Bug c++/24009] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-09-22 19:25 ` pinskia at gcc dot gnu dot org
2005-09-23 16:47 ` pinskia at gcc dot gnu dot org
2005-09-23 16:51 ` pinskia at gcc dot gnu dot org
2005-09-23 16:54 ` pinskia at gcc dot gnu dot org
2005-09-27 16:21 ` mmitchel 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).