This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12328] Can't set breakpoint on method taking const,non-reference/pointer scalar parameter
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 17 Jan 2011 07:13:41 +0000
- Subject: [Bug c++/12328] Can't set breakpoint on method taking const,non-reference/pointer scalar parameter
- Auto-submitted: auto-generated
- References: <bug-12328-4717@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12328
Jan Kratochvil <jan.kratochvil at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jan.kratochvil at redhat
| |dot com
--- Comment #5 from Jan Kratochvil <jan.kratochvil at redhat dot com> 2011-01-17 07:13:24 UTC ---
I have not found a GCC Bug filed for this claimed GCC problem.
But it is a GDB-only regression:
C++ working draft:
13.1 Overloadable declarations
point 3, item:
- Parameter declarations that differ only in the presence or absence of const
and/or volatile are equivalent.
class C {
void m(const int a) {}
void m(int a) {}
};
g++ (GCC) 4.6.0 20110117 (experimental)
classC.C:3:8: error: âvoid C::m(int)â cannot be overloaded
classC.C:2:8: error: with âvoid C::m(int)â
The debug info looks weird but it is irrelevant to this case as both
`(const int aa)' and `(int aa)' DIEs must generate the same linkage name.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.