public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48665] New: type of const member function
@ 2011-04-18 13:13 marc.glisse at normalesup dot org
  2011-09-06 21:18 ` [Bug c++/48665] " marc.glisse at normalesup dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: marc.glisse at normalesup dot org @ 2011-04-18 13:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48665

           Summary: type of const member function
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


typeid reports void() and void()const as the same type:

#include <typeinfo>
#include <iostream>
template<class A,class B> void f(){
        std::cout << std::boolalpha << (typeid(A)==typeid(B)) << '\n';
}
int main(){
        f<void()const,void()>();
}

The demangler in binutils prints void()const as void( const)(). If I make g++
produce an error message (adding a line "typename A::x y;" in f), 4.5 prints
void()const while 4.6 prints void()__attribute__((const)).


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2013-04-22 20:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-18 13:13 [Bug c++/48665] New: type of const member function marc.glisse at normalesup dot org
2011-09-06 21:18 ` [Bug c++/48665] " marc.glisse at normalesup dot org
2011-09-23 21:57 ` paolo.carlini at oracle dot com
2011-10-09 12:34 ` paolo.carlini at oracle dot com
2011-10-10  4:19 ` ian at airs dot com
2011-10-10  5:55 ` marc.glisse at normalesup dot org
2011-10-10 13:31 ` paolo.carlini at oracle dot com
2011-10-10 13:33 ` paolo.carlini at oracle dot com
2011-10-10 20:35 ` ian at gcc dot gnu.org
2011-10-10 20:36 ` ian at airs dot com
2011-10-10 21:11 ` marc.glisse at normalesup dot org
2011-10-10 21:38 ` paolo.carlini at oracle dot com
2011-11-24 12:05 ` paolo.carlini at oracle dot com
2012-03-22  8:41 ` rguenth at gcc dot gnu.org
2012-07-02 12:56 ` rguenth at gcc dot gnu.org
2013-04-22 20:57 ` jason at gcc dot gnu.org

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