[LLVMbugs] [Bug 13518] New: Debug info for the constructor of a templated class emits file for prototype instead of definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Aug 2 12:05:00 PDT 2012


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

             Bug #: 13518
           Summary: Debug info for the constructor of a templated class
                    emits file for prototype instead of definition
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: erik.olofsson at hansoft.se
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 8987
  --> http://llvm.org/bugs/attachment.cgi?id=8987
Test.h

Compile and link the attached Test.cpp/Test.h

run in debugger to hit access violation and it will yield the following
backtrace:
    frame #0: 0x0000000100000f02 a.out`Test<int>::Test() + 18 at Test.cpp:5
    frame #1: 0x0000000100000ee5 a.out`Test<int>::Test() + 21 at Test.h:6
    frame #2: 0x0000000100000eb8 a.out`main + 24 at Test.cpp:9
    frame #3: 0x00007fff8e4c87e1 libdyld.dylib`start + 1

frame #1 should also point Test.cpp not Test.h

Possible fix attached.

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