[LLVMbugs] [Bug 3989] C99 inline + extern decl merging problems

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 28 07:43:18 PST 2011


http://llvm.org/bugs/show_bug.cgi?id=3989

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |

--- Comment #17 from Douglas Gregor <dgregor at apple.com> 2011-11-28 09:43:18 CST ---
Re-opening. C99 6.7.4p6 actually requires us to look at *all* of the
declarations, including those that come after the definition, to determine
whether the function is an inline definition. Semantic analysis seems to be
doing the right thing here (per
FunctionDecl::isInlineDefinitionExternallyVisible), but CodeGen  has trouble
with definitions that change their linkage after it saw the definition.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list