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: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to