public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9518: apparent header file problems
@ 2003-02-03 17:12 bangerth
  0 siblings, 0 replies; 8+ messages in thread
From: bangerth @ 2003-02-03 17:12 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mzagrabe, nobody

Synopsis: apparent header file problems

State-Changed-From-To: feedback->closed
State-Changed-By: bangerth
State-Changed-When: Mon Feb  3 17:12:55 2003
State-Changed-Why:
    Since two of us can't reproduce this, it must be something
    in your local installation. There are two ways how you can
    do anything about it:
    - try bootstrapping gcc3.2.1 on your machine
    - try to get help from the debian people from which you
      got the package.
    
    Sorry
      Wolfgang

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9518


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

* Re: c++/9518: apparent header file problems
@ 2003-02-03  6:46 Christian Ehrhardt
  0 siblings, 0 replies; 8+ messages in thread
From: Christian Ehrhardt @ 2003-02-03  6:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9518; it has been noted by GNATS.

From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
To: matt zagrabelny <mzagrabe@d.umn.edu>
Cc: gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org,
  gcc-gnats@gcc.gnu.org
Subject: Re: c++/9518: apparent header file problems
Date: Mon, 3 Feb 2003 07:45:39 +0100

 On Sun, Feb 02, 2003 at 07:17:44PM -0600, matt zagrabelny wrote:
 > what do you mean when you say that the code is illegal?
 
 With gcc 3.0 and later identifiers from the standard library are in
 namespace std and no longer in namespace ::. This means that you
 have to qualify things like cout with std::. If someone can reproduce
 this it might well turn out that the ICE also happens with legal code.
 
    regards  Christian
 


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

* Re: c++/9518: apparent header file problems
@ 2003-02-03  1:46 matt zagrabelny
  0 siblings, 0 replies; 8+ messages in thread
From: matt zagrabelny @ 2003-02-03  1:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9518; it has been noted by GNATS.

From: matt zagrabelny <mzagrabe@d.umn.edu>
To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	mzagrabe@d.umn.edu, nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/9518: apparent header file problems
Date: 02 Feb 2003 19:40:42 -0600

 the install was done via debian packages (dselect from the unstable
 branch to be specific). simple c programs compile, but compiling the
 kernel results in a segmentation fault as well (i have not submitted a
 bug report for that yet.) this program fails every compile. i dont know
 what else to do, i have tried purging and reinstalling certain packages
 (and shaking my fists at the monitor) but i do not know enough to do any
 serious debugging. let me know if there is anything i could try (to help
 debugging).
 
 -matt
 
 On Sun, 2003-02-02 at 16:37, bangerth@dealii.org wrote:
 > Synopsis: apparent header file problems
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: bangerth
 > State-Changed-When: Sun Feb  2 22:37:18 2003
 > State-Changed-Why:
 >     I cannot reproduce this with today's 3.2.2 CVS:
 >     tmp/g> /home/bangerth/bin/gcc-3.2.2-pre/bin/c++ -c x.cc
 >     x.cc: In function `int main(int, char**)':
 >     x.cc:4: `cout' undeclared (first use this function)
 >     x.cc:4: (Each undeclared identifier is reported only once for each function it
 >        appears in.)
 >     x.cc:4: `endl' undeclared (first use this function)
 >     
 >     Can you say something about how you installed your
 >     compiler? I suspect that this must be something specific
 >     to your installation, since none of us can reproduce
 >     the problem.
 >     
 >     Regards
 >       Wolfgang
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9518
 
 


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

* Re: c++/9518: apparent header file problems
@ 2003-02-03  1:26 matt zagrabelny
  0 siblings, 0 replies; 8+ messages in thread
From: matt zagrabelny @ 2003-02-03  1:26 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/9518; it has been noted by GNATS.

From: matt zagrabelny <mzagrabe@d.umn.edu>
To: ehrhardt@mathematik.uni-ulm.de, gcc-bugs@gcc.gnu.org,
	gcc-prs@gcc.gnu.org, mzagrabe@d.umn.edu, nobody@gcc.gnu.org,
	gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: c++/9518: apparent header file problems
Date: 02 Feb 2003 19:17:44 -0600

 what do you mean when you say that the code is illegal?
 
 On Sun, 2003-02-02 at 03:16, ehrhardt@mathematik.uni-ulm.de wrote:
 > Synopsis: apparent header file problems
 > 
 > State-Changed-From-To: feedback->open
 > State-Changed-By: cae
 > State-Changed-When: Sun Feb  2 09:16:58 2003
 > State-Changed-Why:
 >     I still can't reproduce this. However, I received an attachment
 >     with preprocessed source. The code is illegal though. It lacks a
 >     using namespace std. Thus I changed the class to ICE on illegal.
 > 
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9518
 
 


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

* Re: c++/9518: apparent header file problems
@ 2003-02-02 22:37 bangerth
  0 siblings, 0 replies; 8+ messages in thread
From: bangerth @ 2003-02-02 22:37 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mzagrabe, nobody

Synopsis: apparent header file problems

State-Changed-From-To: open->feedback
State-Changed-By: bangerth
State-Changed-When: Sun Feb  2 22:37:18 2003
State-Changed-Why:
    I cannot reproduce this with today's 3.2.2 CVS:
    tmp/g> /home/bangerth/bin/gcc-3.2.2-pre/bin/c++ -c x.cc
    x.cc: In function `int main(int, char**)':
    x.cc:4: `cout' undeclared (first use this function)
    x.cc:4: (Each undeclared identifier is reported only once for each function it
       appears in.)
    x.cc:4: `endl' undeclared (first use this function)
    
    Can you say something about how you installed your
    compiler? I suspect that this must be something specific
    to your installation, since none of us can reproduce
    the problem.
    
    Regards
      Wolfgang

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9518


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

* Re: c++/9518: apparent header file problems
@ 2003-02-02  9:16 ehrhardt
  0 siblings, 0 replies; 8+ messages in thread
From: ehrhardt @ 2003-02-02  9:16 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mzagrabe, nobody

Synopsis: apparent header file problems

State-Changed-From-To: feedback->open
State-Changed-By: cae
State-Changed-When: Sun Feb  2 09:16:58 2003
State-Changed-Why:
    I still can't reproduce this. However, I received an attachment
    with preprocessed source. The code is illegal though. It lacks a
    using namespace std. Thus I changed the class to ICE on illegal.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9518


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

* Re: c++/9518: apparent header file problems
@ 2003-02-01 22:39 ehrhardt
  0 siblings, 0 replies; 8+ messages in thread
From: ehrhardt @ 2003-02-01 22:39 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mzagrabe, nobody

Synopsis: apparent header file problems

State-Changed-From-To: open->feedback
State-Changed-By: cae
State-Changed-When: Sat Feb  1 22:39:54 2003
State-Changed-Why:
    I indeed can't reproduce this. Could you please send the .ii file
    produced when running g++ with -save-temps?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9518


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

* c++/9518: apparent header file problems
@ 2003-01-31  5:06 mzagrabe
  0 siblings, 0 replies; 8+ messages in thread
From: mzagrabe @ 2003-01-31  5:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         9518
>Category:       c++
>Synopsis:       apparent header file problems
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 31 05:06:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Zagrabelny
>Release:        gcc version 3.2.2 20030129 (Debian prerelease)
>Organization:
>Environment:
duron processor, linux kernel 2.4.18
>Description:
#include <iostream>
 
int main(int _argc, char ** _argv){
        cout << "problem!" << endl;
        return 0;
}
>How-To-Repeat:
g++ -v -save-temps temp.cc

i am sure it will work for you, here is the output of my command:

Reading specs from /usr/lib/gcc-lib/i386-linux/3.2.2/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,pascal,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.2.2 20030124 (Debian prerelease)
 /usr/lib/gcc-lib/i386-linux/3.2.2/cpp0 -lang-c++ -D__GNUG__=3 -D__DEPRECATED -D__EXCEPTIONS -v -D__GNUC__=3 -D__GNUC_MINOR__=2 -D__GNUC_PATCHLEVEL__=2 -D__GXX_ABI_VERSION=102 -D__ELF__ -Dunix -D__gnu_linux__ -Dlinux -D__ELF__ -D__unix__ -D__gnu_linux__ -D__linux__ -D__unix -D__linux -Asystem=posix -D__NO_INLINE__ -D__STDC_HOSTED__=1 -D_GNU_SOURCE -Acpu=i386 -Amachine=i386 -Di386 -D__i386 -D__i386__ -D__tune_i386__ temp.cc temp.ii
GNU CPP version 3.2.2 20030129 (Debian prerelease) (cpplib) (i386 Linux/ELF)
ignoring nonexistent directory "/usr/i386-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.2
 /usr/include/c++/3.2/i386-linux
 /usr/include/c++/3.2/backward
 /usr/local/include
 /usr/lib/gcc-lib/i386-linux/3.2.2/include
 /usr/include
End of search list.
 /usr/lib/gcc-lib/i386-linux/3.2.2/cc1plus -fpreprocessed temp.ii -quiet -dumpbase temp.cc -version -o temp.s
GNU CPP version 3.2.2 20030124 (Debian prerelease) (cpplib) (i386 Linux/ELF)
GNU C++ version 3.2.2 20030124 (Debian prerelease) (i386-linux)
        compiled by GNU C version 3.2.2 20030124 (Debian prerelease).
In file included from /usr/include/c++/3.2/istream:297,
                 from /usr/include/c++/3.2/iostream:46,
                 from temp.cc:1:
/usr/include/c++/3.2/bits/istream.tcc:984: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.


i think my header files are munged, i apologize for not knowing more.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-02-03 17:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-03 17:12 c++/9518: apparent header file problems bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-02-03  6:46 Christian Ehrhardt
2003-02-03  1:46 matt zagrabelny
2003-02-03  1:26 matt zagrabelny
2003-02-02 22:37 bangerth
2003-02-02  9:16 ehrhardt
2003-02-01 22:39 ehrhardt
2003-01-31  5:06 mzagrabe

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