This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12328] Can't set breakpoint on method taking const,non-reference/pointer scalar parameter


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]