public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22441] New: ICE on redefined inline function
@ 2005-07-12 13:40 jakub at redhat dot com
2005-07-12 15:14 ` [Bug c/22441] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: jakub at redhat dot com @ 2005-07-12 13:40 UTC (permalink / raw)
To: gcc-bugs
static inline __attribute__ ((always_inline))
int baz (const unsigned char *addr)
{
return addr[0] & 0x01;
}
static inline __attribute__ ((always_inline))
int bar (const unsigned char *addr)
{
return !baz (addr);
}
extern inline __attribute__ ((always_inline))
int baz (const unsigned char *addr)
{
return addr[0] != 0xff && (0x01 & addr[0]);
}
int
foo (unsigned char *p)
{
return bar (p);
}
ICEs at -O2 -fno-unit-at-a-time and issues a sorry message with -O2.
Both GCC 3.4.4 and HEAD reject this as invalid.
--
Summary: ICE on redefined inline function
Product: gcc
Version: 4.0.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at redhat dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22441
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/22441] ICE on redefined inline function
2005-07-12 13:40 [Bug c/22441] New: ICE on redefined inline function jakub at redhat dot com
@ 2005-07-12 15:14 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-12 15:14 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-12 15:12 -------
*** This bug has been marked as a duplicate of 21975 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22441
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-12 15:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-12 13:40 [Bug c/22441] New: ICE on redefined inline function jakub at redhat dot com
2005-07-12 15:14 ` [Bug c/22441] " pinskia at gcc dot gnu dot org
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).