[LLVMbugs] [Bug 19743] New: Failure to emit attribute(used) inline methods defined in nested classes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 14 12:40:31 PDT 2014


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

            Bug ID: 19743
           Summary: Failure to emit attribute(used) inline methods defined
                    in nested classes
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

For the following code:

  struct S {
    struct T {
      void __attribute__((used)) f() {}
    };
  };

We fail to emit the definition for f().

The problem is that when we reach CodeGeneratorImpl::HandleTagDeclDefinition
for T, f() will not have had its body parsed yet.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140514/99419b0e/attachment.html>


More information about the llvm-bugs mailing list