This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/10993] New: strings with -ansi


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: strings with -ansi
           Product: gcc
           Version: 3.2.2
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: warlock@elcat.kg
                CC: gcc-bugs@gcc.gnu.org

compilation fails with -ansi key on gcc 3.3.3

bash-2.05b# cat go.cc
#include <string>

int main () {
 return 0;
}

bash-2.05b# g++ go.cc -ansi
In file included from /usr/include/g++/bits/fpos.h:45,
                 from /usr/include/g++/bits/char_traits.h:46,
                 from /usr/include/g++/string:47,
                 from go.cc:1:
/usr/include/g++/cwchar:229: `wcstoll' not declared
/usr/include/g++/cwchar:230: `wcstoull' not declared
/usr/include/g++/cwchar:236: `wcstoll' not declared
/usr/include/g++/cwchar:237: `wcstoull' not declared
In file included from /usr/include/g++/bits/stl_algobase.h:67,
                 from /usr/include/g++/memory:54,
                 from /usr/include/g++/string:48,
                 from go.cc:1:
/usr/include/g++/cstdlib:138: `lldiv_t' not declared
/usr/include/g++/cstdlib:148: syntax error before `(' token
In file included from /usr/include/g++/bits/stl_algobase.h:67,
                 from /usr/include/g++/memory:54,
                 from /usr/include/g++/string:48,
                 from go.cc:1:
/usr/include/g++/cstdlib:125:1: unterminated #if
/usr/include/g++/cstdlib:44:1: unterminated #ifndef
In file included from /usr/include/g++/memory:54,
                 from /usr/include/g++/string:48,
                 from go.cc:1:
/usr/include/g++/bits/stl_algobase.h:61:1: unterminated #ifndef
In file included from /usr/include/g++/string:48,
                 from go.cc:1:
/usr/include/g++/memory:49:1: unterminated #ifndef
In file included from go.cc:1:
/usr/include/g++/string:40:1: unterminated #ifndef



bash-2.05b# uname -v
FreeBSD 5.1-BETA #0: Mon May 26 09:53:24 KGST 2003    
root@warcomp.elcat.kg:/usr/obj/usr/src/sys/WARLOCK
bash-2.05b# gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.2.2 [FreeBSD] 20030205 (release)



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]