public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/7741: ICE on conflicting types
@ 2002-12-04 12:56 Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2002-12-04 12:56 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/7741; it has been noted by GNATS.
From: Jonathan Wakely <gnats@kayari.org>
To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c/7741: ICE on conflicting types
Date: Wed, 4 Dec 2002 20:44:01 +0000
> I cannot reproduce this with recent 3.3 CVS. Could you
> please double check whether this still happens?
Hmm, it still happens with 20021127 and 20021203 CVS.
I suspect I've got something wrong with my system.
I've reduced the test case, so it causes an ICE without the #include
int f(int);
int main()
{
char c; /* any type except int causes ICE */
int i;
int c = f(i);
}
This produces:
$ gcc3x -v ice2.c
Reading specs from /home/redi/lib/gcc-lib/i586-pc-linux-gnu/3.3/specs
Configured with: ../gcc/configure --prefix=/home/redi --enable-languages=c,c++ --program-suffix=3x --disable-nls --enable-threads=posix
Thread model: posix
gcc version 3.3 20021203 (experimental)
/home/redi/lib/gcc-lib/i586-pc-linux-gnu/3.3/cc1 -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 ice2.c -quiet -dumpbase ice2.c -auxbase ice2 -version -o /tmp/ccW0MxMe.s
GNU C version 3.3 20021203 (experimental) (i586-pc-linux-gnu)
compiled by GNU C version 3.3 20021203 (experimental).
ignoring nonexistent directory "/home/redi/i586-pc-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/home/redi/include
/home/redi/lib/gcc-lib/i586-pc-linux-gnu/3.3/include
/usr/include
End of search list.
ice2.c: In function `main':
ice2.c:7: error: conflicting types for `c'
ice2.c:5: error: previous declaration of `c'
ice2.c:5: internal compiler error: in make_decl_rtl, at varasm.c:797
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
If the two declarations of "c" aren't of the same type, I get an ICE.
If the declarations are of the same type, it correctly fails to compile,
without an ICE.
If I replace the variable "i" with a literal integer, there's no ICE.
If I make f() take no arguments, there's no ICE.
This was after updating from cvs, deleting my entire build directory,
configuring and bootstrapping.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7741
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c/7741: ICE on conflicting types
@ 2002-09-08 6:06 Jonathan Wakely
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Wakely @ 2002-09-08 6:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c/7741; it has been noted by GNATS.
From: Jonathan Wakely <gnats@kayari.org>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c/7741: ICE on conflicting types
Date: Sun, 8 Sep 2002 14:03:43 +0100
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7741
The preprocessed source removed the comment I'd made about what caused the
ICE. Removing the #include <unistd.h> prevents the ICE, and a proper
diagnostic message is issued about the conflicting type declarations.
Including unistd.h causes the ICE (so it might be something screwy on my
system - but it doesn't happen with GCC 3.0)
jon
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-12-04 20:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-04 12:56 c/7741: ICE on conflicting types Jonathan Wakely
-- strict thread matches above, loose matches on Subject: below --
2002-09-08 6:06 Jonathan Wakely
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).