This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/34735] C99 6.7.4/3 is not diagnose
- From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2008 00:55:35 -0000
- Subject: [Bug c/34735] C99 6.7.4/3 is not diagnose
- References: <bug-34735-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from geoffk at gcc dot gnu dot org 2008-01-14 00:55 -------
The quoted paragraph does not apply to the first code example, because an
"inline definition" is defined in paragraph 6 as:
If all of the file scope declarations for a function in a translation
unit include the inline function specifier without extern, then the
definition in that translation unit is an inline definition.
In this case, one of the declarations does not include the inline function
specifier, so it's not an inline definition.
I am unclear on how the standard is supposed to apply to the second example,
but IMO we should give the warning anyway.
--
geoffk at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34735