public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8458: ICE caused by typedef X = 3
@ 2002-11-05  2:56 ehrhardt
  0 siblings, 0 replies; 2+ messages in thread
From: ehrhardt @ 2002-11-05  2:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8458
>Category:       c
>Synopsis:       ICE caused by typedef X = 3
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 05 02:56:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Christian Ehrhardt
>Release:        gcc-3.2
>Organization:
>Environment:
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.2/specs
Configured with: /var/playground/ULMgcc3/src/gcc-3.2/configure --with-ld=/usr/local/bin/ld --with-gnu-ld --with-as=/usr/local/bin/as --with-gnu-as
Thread model: posix
gcc version 3.2
SunOS thales 5.8 Generic_108528-15 sun4u sparc SUNW,Ultra-2
>Description:
Compiling this gives an ICE:

int x;
typedef X = x;

According to this comment in c-decl.c this should be legal:
        /* typedef foo = bar  means give foo the same type as bar.
           We haven't parsed bar yet, so `finish_decl' will fix that up.
           Any other case of an initialization in a TYPE_DECL is an error.  */

Here's the complete ICE:
gcc -c typedef.c
typedef.c:2: Internal compiler error in make_decl_rtl, at varasm.c:839
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

>How-To-Repeat:
See description
>Fix:

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


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

* Re: c/8458: ICE caused by typedef X = 3
@ 2002-11-05  4:01 paolo
  0 siblings, 0 replies; 2+ messages in thread
From: paolo @ 2002-11-05  4:01 UTC (permalink / raw)
  To: ehrhardt, gcc-bugs, gcc-prs, nobody

Synopsis: ICE caused by typedef X = 3

State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Tue Nov  5 04:01:19 2002
State-Changed-Why:
    Already fixed for 3.2.1 and 3.3. Now gives (3.2.1):
    8458.c:2: typedef `X' is initialized (use __typeof__ instead)
    (3.3):
    8458.c:2: error: typedef `X' is initialized (use __typeof__ instead)

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


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

end of thread, other threads:[~2002-11-05 12:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-05  2:56 c/8458: ICE caused by typedef X = 3 ehrhardt
2002-11-05  4:01 paolo

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