[LLVMbugs] [Bug 14473] New: Multiple breakpoints in class template member function definition

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Nov 30 14:32:52 PST 2012


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

             Bug #: 14473
           Summary: Multiple breakpoints in class template member function
                    definition
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: googler
          Severity: enhancement
          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


Multiple breakpoints when breaking on foo<int>::foo in:

template<class T>
struct foo {
  foo(int);
  int val;
};

template<class T>
foo<T>::foo(int v) {
  val = v;
}

foo<int> x(3);

break foo<int>::foo
Breakpoint 1 at 0x53: foo<int>::foo. (2 locations)
(gdb) info breakpoints
Num     Type           Disp Enb Address            What
1       breakpoint     keep y   <MULTIPLE>         
1.1                         y     0x0000000000000053 in foo<int>::foo(int) at
type.cc:10
1.2                         y     0x0000000000000070 in foo<int>::foo(int) at
type.cc:8

(visible in gdb.cp/templates.exp in the GCC 7.5 test suite)

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