From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28131 invoked by alias); 21 Nov 2001 15:06:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28068 invoked by uid 71); 21 Nov 2001 15:06:02 -0000 Resent-Date: 21 Nov 2001 15:06:02 -0000 Resent-Message-ID: <20011121150602.28067.qmail@sourceware.cygnus.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, "May, Mark" Received:(qmail 24614 invoked from network); 21 Nov 2001 15:01:20 -0000 Received: from unknown (HELO ctron-dnm.ctron.com) (12.25.1.120) by sourceware.cygnus.com with SMTP; 21 Nov 2001 15:01:20 -0000 Received: (from uucp@localhost) by ctron-dnm.ctron.com (8.8.7/8.8.7) id KAA08115 for ; Wed, 21 Nov 2001 10:09:51 -0500 (EST) Received: from cnc-exc2(134.141.77.103) by ctron-dnm.ctron.com via smap (4.1) id xma008029; Wed, 21 Nov 01 10:09:32 -0500 Received: by cnc-exc2.enterasys.com with Internet Mail Service (5.5.2653.19) id ; Wed, 21 Nov 2001 10:00:34 -0500 Message-Id:<71383200D43DD51196540002A5519F4A01F17540@corp-exc1.ctron.com> Date: Fri, 16 Nov 2001 23:41:00 -0000 From: "May, Mark" To: "'gcc-gnats@gcc.gnu.org'" Cc: "May, Mark" Subject: c++/4920: c++ 3.0.2 Class undeclared compile problem X-SW-Source: 2001-11/txt/msg00431.txt.bz2 List-Id: >Number: 4920 >Category: c++ >Synopsis: c++ 3.0.2 Class undeclared compile problem >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Wed Nov 21 07:06:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: Mark May >Release: 3.0.2 >Organization: >Environment: System: SunOS sponge 5.7 Generic sun4u sparc SUNW,Ultra-2 >Description: g++ fails to compile when I add bitset even though the code is correct. NOTE: The ".ii" file is available but not included here. g++ -g -Wall -o str_bit_test str_bit_test.cxx str_bit_test.cxx: In function `int main()': str_bit_test.cxx:18: `bitset' undeclared (first use this function) str_bit_test.cxx:18: (Each undeclared identifier is reported only once for each function it appears in.) str_bit_test.cxx:18: `str_bits' undeclared (first use this function) make: *** [str_bit_test] Error 1 gcc version: Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/specs Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld Thread model: posix gcc version 3.0.2 The make error: g++ -g -Wall -o str_bit_test str_bit_test.cxx str_bit_test.cxx: In function `int main()': str_bit_test.cxx:18: `bitset' undeclared (first use this function) str_bit_test.cxx:18: (Each undeclared identifier is reported only once for each function it appears in.) str_bit_test.cxx:18: `str_bits' undeclared (first use this function) make: *** [str_bit_test] Error 1 g++ with -save-temps: sponge:mamay> g++ -v -save-temps -g -Wall -o str_bit_test str_bit_test.cxx Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/specs Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld Thread model: posix gcc version 3.0.2 /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/cpp0 -lang-c++ -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=2 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Wall -D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D__EXTENSIONS__ -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc str_bit_test.cxx str_bit_test.ii GNU CPP version 3.0.2 (cpplib) (sparc) ignoring nonexistent directory "/usr/local/sparc-sun-solaris2.7/include" #include "..." search starts here: #include <...> search starts here: /usr/local/include/g++-v3 /usr/local/include/g++-v3/sparc-sun-solaris2.7 /usr/local/include/g++-v3/backward /usr/local/include /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/include /usr/include End of search list. /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/cc1plus -fpreprocessed str_bit_test.ii -quiet -dumpbase str_bit_test.cxx -g -Wall -version -o str_bit_test.s GNU CPP version 3.0.2 (cpplib) (sparc) GNU C++ version 3.0.2 (sparc-sun-solaris2.7) compiled by GNU C version 3.0.2. str_bit_test.cxx: In function `int main()': str_bit_test.cxx:18: `bitset' undeclared (first use this function) str_bit_test.cxx:18: (Each undeclared identifier is reported only once for each function it appears in.) str_bit_test.cxx:18: `str_bits' undeclared (first use this function) >How-To-Repeat: g++ -g -Wall -o str_bit_test str_bit_test.cxx >Fix: Unknown Mark May ASIC Verification Engineer, ASIC Development Enterasys Networks Phone: 978-684-1237 FAX: 978-684-1499 Cell: Email: mamay@enterasys.com www: http://www.enterasys.com ------_=_NextPart_001_01C1729D.44D0A180 Content-Type: text/html Message
>Submitter-Id:  net
>Originator:    Mark May
>Organization:  <organization of PR author (multiple lines)>
>Confidential:  no
>Synopsis: c++ 3.0.2 Class undeclared compile problem
>Severity: critical
>Priority: medium
>Category: c++
>Class: rejects-legal
>Release:       3.0.2
>Environment: System: SunOS sponge 5.7 Generic sun4u sparc SUNW,Ultra-2
>Architecture: sun4

host: sparc-sun-solaris2.7
build: sparc-sun-solaris2.7
target: sparc-sun-solaris2.7
configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
>Description: g++ fails to compile when I add bitset even though the code is correct.
 
        NOTE: The ".ii" file is available but not included here.
 
        g++ -g -Wall -o str_bit_test str_bit_test.cxx
str_bit_test.cxx: In function `int main()':
str_bit_test.cxx:18: `bitset' undeclared (first use this function)
str_bit_test.cxx:18: (Each undeclared identifier is reported only once for each
   function it appears in.)
str_bit_test.cxx:18: `str_bits' undeclared (first use this function)
make: *** [str_bit_test] Error 1
gcc version:
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0.2
 

The make error:
g++ -g -Wall -o str_bit_test str_bit_test.cxx
str_bit_test.cxx: In function `int main()':
str_bit_test.cxx:18: `bitset' undeclared (first use this function)
str_bit_test.cxx:18: (Each undeclared identifier is reported only once for each
   function it appears in.)
str_bit_test.cxx:18: `str_bits' undeclared (first use this function)
make: *** [str_bit_test] Error 1
 
g++ with -save-temps:
sponge:mamay> g++ -v -save-temps -g -Wall -o str_bit_test str_bit_test.cxx
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/specs
Configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld
Thread model: posix
gcc version 3.0.2
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/cpp0 -lang-c++ -D__GNUG__=3 -D__GXX_DEPRECATED -D__EXCEPTIONS -D__GXX_ABI_VERSION=100 -v -D__GNUC__=3 -D__GNUC_MINOR__=0 -D__GNUC_PATCHLEVEL__=2 -Dsparc -Dsun -Dunix -D__svr4__ -D__SVR4 -D__sparc__ -D__sun__ -D__unix__ -D__svr4__ -D__SVR4 -D__sparc -D__sun -D__unix -Asystem=unix -Asystem=svr4 -D__NO_INLINE__ -D__STDC_HOSTED__=1 -Wall -D_XOPEN_SOURCE=500 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D__EXTENSIONS__ -D__GCC_NEW_VARARGS__ -Acpu=sparc -Amachine=sparc str_bit_test.cxx str_bit_test.ii
GNU CPP version 3.0.2 (cpplib) (sparc)
ignoring nonexistent directory "/usr/local/sparc-sun-solaris2.7/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include/g++-v3
 /usr/local/include/g++-v3/sparc-sun-solaris2.7
 /usr/local/include/g++-v3/backward
 /usr/local/include
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/include
 /usr/include
End of search list.
 /usr/local/lib/gcc-lib/sparc-sun-solaris2.7/3.0.2/cc1plus -fpreprocessed str_bit_test.ii -quiet -dumpbase str_bit_test.cxx -g -Wall -version -o str_bit_test.s
GNU CPP version 3.0.2 (cpplib) (sparc)
GNU C++ version 3.0.2 (sparc-sun-solaris2.7)
        compiled by GNU C version 3.0.2.
str_bit_test.cxx: In function `int main()':
str_bit_test.cxx:18: `bitset' undeclared (first use this function)
str_bit_test.cxx:18: (Each undeclared identifier is reported only once for each
   function it appears in.)
str_bit_test.cxx:18: `str_bits' undeclared (first use this function)
 
>How-To-Repeat: g++ -g -Wall -o str_bit_test str_bit_test.cxx
>Fix: Unknown
 


Mark May 

ASIC Verification Engineer, ASIC Development 
Enterasys Networks
Phone:  978-684-1237
FAX:     978-684-1499
Cell:     
Email:   mamay@enterasys.com

www:    http://www.enterasys.com

 
------_=_NextPart_001_01C1729D.44D0A180-- >Release-Note: >Audit-Trail: >Unformatted: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C1729D.44D0A180 Content-Type: text/plain >Architecture: sun4 host: sparc-sun-solaris2.7 build: sparc-sun-solaris2.7 target: sparc-sun-solaris2.7 configured with: ../configure --with-as=/usr/local/bin/as --with-ld=/usr/local/bin/ld