This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54442] Const overloads resolution failure
- From: "glisse at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 31 Aug 2012 20:40:55 +0000
- Subject: [Bug c++/54442] Const overloads resolution failure
- Auto-submitted: auto-generated
- References: <bug-54442-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54442
Marc Glisse <glisse at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |glisse at gcc dot gnu.org
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> 2012-08-31 20:40:55 UTC ---
"using" and "extern"C"" are not guilty:
struct S
{
void s (int) const throw ();
void s (int) throw ();
};
typedef int index_t;
void (S::*f) (index_t) = &S::s;
void (S::*g) (index_t) const = &S::s;
The bogus pretty printing with attribute((const)) is PR 48665.