public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/39026]  New: Gcc accepts invalid code
@ 2009-01-29 18:31 hjl dot tools at gmail dot com
  2009-01-29 18:34 ` [Bug c/39026] " hjl dot tools at gmail dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-01-29 18:31 UTC (permalink / raw)
  To: gcc-bugs

+++ This bug was initially created as a clone of Bug #39013 +++

[hjl@gnu-6 gcc]$ cat /tmp/i.i
inline void foo ();

int
main ()
{
  foo ();
  return 0;
}
[hjl@gnu-6 gcc]$ gcc  /tmp/i.i  -S

Is this valid C code? From

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39013#c10

--
IMHO this is invalid.  6.7.4/6

"... If a function is declared with an inline function specifier, then it
shall also be defined in the same translation unit."
--


-- 
           Summary: Gcc accepts invalid code
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl dot tools at gmail dot com
 BugsThisDependsOn: 39013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39026


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

end of thread, other threads:[~2009-01-31 17:44 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-29 18:31 [Bug c/39026] New: Gcc accepts invalid code hjl dot tools at gmail dot com
2009-01-29 18:34 ` [Bug c/39026] " hjl dot tools at gmail dot com
2009-01-29 20:02 ` joseph at codesourcery dot com
2009-01-29 20:09 ` [Bug c/39026] New: " Joseph S. Myers
2009-01-29 20:09 ` [Bug c/39026] " hjl dot tools at gmail dot com
2009-01-29 21:24 ` rguenther at suse dot de
2009-01-30  1:17 ` hjl dot tools at gmail dot com
2009-01-30  6:52 ` rguenther at suse dot de
2009-01-30 16:05 ` hjl dot tools at gmail dot com
2009-01-30 16:44 ` hjl dot tools at gmail dot com
2009-01-31 17:44 ` hjl dot tools at gmail dot com

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