public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug c++/12328] Can't set breakpoint on method taking const, non-reference/pointer scalar parameter Date: Mon, 17 Jan 2011 07:13:00 -0000 [thread overview] Message-ID: <bug-12328-4717-NnUuTq1Htk@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <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.
next prev parent reply other threads:[~2011-01-17 7:13 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-12-16 17:34 [Bug c++/12328] New: Ignore "const" for non-reference/pointer scalar keiths at redhat dot com 2010-12-16 17:37 ` [Bug c++/12328] Can't set breakpoint on method taking const, non-reference/pointer scalar parameter keiths at redhat dot com 2010-12-16 17:47 ` keiths at redhat dot com 2010-12-17 17:03 ` thahn01@t-online.de 2010-12-17 23:13 ` keiths at redhat dot com 2011-01-17 7:13 ` jan.kratochvil at redhat dot com [this message] 2011-02-06 18:17 ` jan.kratochvil at redhat dot com 2011-02-13 9:16 ` cvs-commit at gcc dot gnu.org 2011-02-13 9:24 ` jan.kratochvil at redhat dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-12328-4717-NnUuTq1Htk@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).