[LLVMbugs] [Bug 14492] New: debuginfo missing for pointer-to-member non-type template parameter

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Dec 3 09:44:55 PST 2012


             Bug #: 14492
           Summary: debuginfo missing for pointer-to-member non-type
                    template parameter
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: googler
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: dblaikie at gmail.com
                CC: dgregor at apple.com, echristo at gmail.com,
                    llvmbugs at cs.uiuc.edu
            Blocks: 14330
    Classification: Unclassified

In the following example:

struct C   
  int c;
  int d;

struct D : C
  int e;
  int f;

template<typename T, int I, int C::*MP>
struct Temargs

Temargs<D, 23, &C::c> temvar;

Clang produces debug info for "T", and "I", but not "MP". GCC 4.7 produces
debug info for all three parameters.

This causes the gdb 7.5 test suite to fail on gdb.python/py-type.exp

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