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

* [Bug c++/24009] [4.0/4.1 regression] C++ fails to print #include stack
  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 ` pinskia at gcc dot gnu dot org
  2005-09-22 19:25 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-22 15:06 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-22 15:04 -------
Confirmed, 4.0.0 have the same issue.

To reproduce this on i686-pc-linux-gnu use cc1 directly so _GNU_SOURCE is not defined or undefine it 
in the source or invoke gcc as
g++ t.cc -U_GNU_SOURCE

the C front-end works still too.

I am thinking this comes from the tokenize before parsing start parsing.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
      Known to fail|                            |4.0.0 4.1.0
      Known to work|                            |3.4.0
            Summary|[4.1 regression] C++ fails  |[4.0/4.1 regression] C++
                   |to print #include stack     |fails to print #include
                   |                            |stack
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/24009] [4.0/4.1 regression] C++ fails to print #include stack
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-22 19:25 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-22 19:24 -------
Confirmed, reduced testcase:
# 1 "t.c"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "t.c"
# 1 "t.h" 1
1
# 2 "t.c" 2

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-09-22 19:24:11
               date|                            |


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


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

* [Bug c++/24009] [4.0/4.1 regression] C++ fails to print #include stack
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-23 16:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-23 16:47 -------
Hmm, my simple example shows that this is a regression also in 3.4.0 but that looks like a different 
bug than the orginal one.
Anyways here is the reduced testcase for the reported bug, I will file the other one in a different bug:
# 1 "t.cc"
# 1 "<built-in>"
# 1 "<command line>"
# 1 "t.cc"
# 1 "t.h" 1
namespace t
{
  using ::t1;
}
# 2 "t.cc" 2

-- 


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


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

* [Bug c++/24009] [4.0/4.1 regression] C++ fails to print #include stack
  2005-09-22 10:34 [Bug c++/24009] New: [4.1 regression] C++ fails to print #include stack gerald at pfeifer dot com
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-23 16:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-23 16:51 -------
Filed comment #2 as PR 24037.

-- 


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


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

* [Bug c++/24009] [4.0/4.1 regression] C++ fails to print #include stack
  2005-09-22 10:34 [Bug c++/24009] New: [4.1 regression] C++ fails to print #include stack gerald at pfeifer dot com
                   ` (3 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-23 16:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-09-23 16:54 -------
Caused between 20040920 and 20040921 which means this was caused by:
2004-09-20  Matt Austern <austern@apple.com>
            Zack Weinberg  <zack@codesourcery.com>


Note there was a time in 3.4.x were he had the same issue too but I have not tracked down the date 
either.

-- 


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


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

* [Bug c++/24009] [4.0/4.1 regression] C++ fails to print #include stack
  2005-09-22 10:34 [Bug c++/24009] New: [4.1 regression] C++ fails to print #include stack gerald at pfeifer dot com
                   ` (4 preceding siblings ...)
  2005-09-23 16:54 ` pinskia at gcc dot gnu dot org
@ 2005-09-27 16:21 ` mmitchel at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:21 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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).