public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Neil Booth <neil@daikokuya.demon.co.uk> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, Subject: Re: c++/6001: g++ problems with nested headers from > egcs-2.91.66 until 3.0.0 Date: Tue, 19 Mar 2002 11:56:00 -0000 [thread overview] Message-ID: <20020319195604.6934.qmail@sources.redhat.com> (raw) The following reply was made to PR c++/6001; it has been noted by GNATS. From: Neil Booth <neil@daikokuya.demon.co.uk> To: mdeil@pallas.de Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/6001: g++ problems with nested headers from > egcs-2.91.66 until 3.0.0 Date: Tue, 19 Mar 2002 19:48:40 +0000 mdeil@pallas.de wrote:- > I found some strange behaviour with some of the g++ versions greater than 2.91 on different platforms with a small C++ code (included) > I investigated a little more and found out that in my opinion the program was badly coded. The header files included each others and also some of the system headers. So I cleaned up all headers so that there are no more > includes in the header files. Collected the used system and program header's and added the std namespace. Wow, what a suprise now all gcc versions include 3.0 accepts the code. > > Can you give me some insight's what makes this program so PRBLEMATIC are this ANSI/ISO feature problems ? All compilers that produce errors find them in their own include files which confuses me. I thought that the problems should be located in the original source code. We cannot debug this easily for you. However, you can probably get a deeper understanding of what is happening with the -H option. Please compare the output of gcc -E -H yourfile.c between the two compilers, and see where they diverge. It generates an include stack trace. Let us know if we can close this PR. Neil.
next reply other threads:[~2002-03-19 19:56 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-03-19 11:56 Neil Booth [this message] -- strict thread matches above, loose matches on Subject: below -- 2002-03-26 2:16 Mario Deilmann 2002-03-25 10:36 Neil Booth 2002-03-22 11:36 Neil Booth 2002-03-22 1:56 Mario Deilmann 2002-03-21 10:36 Neil Booth 2002-03-21 10:32 neil 2002-03-21 1:36 Mario Deilmann 2002-03-20 10:16 Neil Booth 2002-03-20 1:46 Mario Deilmann 2002-03-19 7:16 mdeil
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020319195604.6934.qmail@sources.redhat.com \ --to=neil@daikokuya.demon.co.uk \ --cc=gcc-prs@gcc.gnu.org \ --cc=nobody@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).