[LLVMbugs] [Bug 8526] anonymous namespace prevents codegen outside namespace

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 2 08:30:28 PDT 2010


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

Douglas Gregor <dgregor at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME

--- Comment #2 from Douglas Gregor <dgregor at apple.com> 2010-11-02 10:30:27 CDT ---
Clang is doing the right thing here. The code is well-formed, as far as I can
tell. However, Clang is not emitting Foo::bar() because it has internal linkage
and is never used. If you add an external function that calls it, e.g.,

  void blah() {
    Foo f;
    f.bar();
  }

then Clang will generate code for Foo::bar().

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