public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/8777: Internal error when mixing inline, extern and static.
@ 2002-12-01 17:16 c00chm
  0 siblings, 0 replies; 2+ messages in thread
From: c00chm @ 2002-12-01 17:16 UTC (permalink / raw)
  To: gcc-gnats, debian-gcc


>Number:         8777
>Category:       c
>Synopsis:       Internal error when mixing inline, extern and static.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 01 17:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Christian Haggstrom
>Release:        3.2.1 (Debian testing/unstable)
>Organization:
>Environment:
System: Linux saturn 2.4.19 #9 Thu Nov 7 16:53:49 CET 2002 i586 unknown unknown GNU/Linux
Architecture: i586

host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
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
>Description:
	gcc-3.2 segfaults when I try to compile this code with optimization enabled
>How-To-Repeat:
	$ cat > test.c
	inline int a(int x) { return 0; }
	extern inline void b(void) { }
	static void b(void) { a(0); }

	$ gcc-3.2 -O test.c
	test.c:3: warning: static declaration for `b' follows non-static
	test.c: In function `b':
	test.c:3: 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.
>Fix:
	The problem can be solved by correcting the code. However, gcc should not
	crash due to bad input.
	I have not tried to compile it with the latest snapshot of gcc.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c/8777: Internal error when mixing inline, extern and static.
@ 2002-12-02  1:34 ebotcazou
  0 siblings, 0 replies; 2+ messages in thread
From: ebotcazou @ 2002-12-02  1:34 UTC (permalink / raw)
  To: c00chm, gcc-bugs, gcc-prs, nobody

Synopsis: Internal error when mixing inline, extern and static.

State-Changed-From-To: open->closed
State-Changed-By: ebotcazou
State-Changed-When: Mon Dec  2 01:34:35 2002
State-Changed-Why:
    Duplicate of PR c/8518. Fixed on branch and mainline.

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


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

end of thread, other threads:[~2002-12-02  9:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-01 17:16 c/8777: Internal error when mixing inline, extern and static c00chm
2002-12-02  1:34 ebotcazou

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