This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36507] New: [4.3/4.4 Regression] ISO C99 inline semantics doesn't play together with nested functions
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jun 2008 12:50:55 -0000
- Subject: [Bug c/36507] New: [4.3/4.4 Regression] ISO C99 inline semantics doesn't play together with nested functions
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
int main (void)
{
int i = 2;
inline int bar (void)
{
return i;
}
return bar () - 2;
}
doesn't link with -O0 -std=gnu99, works with -O0 -std=gnu99 -fgnu89-inline,
or -O1 -std=gnu99, or -O0 -std=gnu89. As extern inline for nested function
is rejected, I believe we need to avoid clearing DECL_EXTERNAL for nested
inline functions.
--
Summary: [4.3/4.4 Regression] ISO C99 inline semantics doesn't
play together with nested functions
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36507