public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49921] New: Segfault during compilation, decltype and operator->*
@ 2011-07-31 10:03 fabian.bergmark at gmail dot com
  2011-07-31 10:26 ` [Bug c++/49921] " fabian.bergmark at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: fabian.bergmark at gmail dot com @ 2011-07-31 10:03 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Segfault during compilation, decltype and operator->*
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: fabian.bergmark@gmail.com


Code:

#include <iostream>

class Local
{
    public:
        void func() {};
};

int main()
{
    Local* l = new Local;
    void(Local::*ptr)();
    ptr = &Local::func;
    decltype((l->*ptr)) i;
    std::cerr << typeid(i).name << std::endl;
}

Output:

gcc test.cpp -o test -std=c++0x
test.cpp: In function ‘int main()’:
test.cpp:15:22: internal compiler error: Segmenteringsfel
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.


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

end of thread, other threads:[~2011-08-06 22:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-31 10:03 [Bug c++/49921] New: Segfault during compilation, decltype and operator->* fabian.bergmark at gmail dot com
2011-07-31 10:26 ` [Bug c++/49921] " fabian.bergmark at gmail dot com
2011-07-31 10:38 ` [Bug c++/49921] [C++0x] " paolo.carlini at oracle dot com
2011-07-31 10:57 ` fabian.bergmark at gmail dot com
2011-08-01  9:52 ` redi at gcc dot gnu.org
2011-08-05 21:40 ` jason at gcc dot gnu.org
2011-08-06  4:37 ` jason at gcc dot gnu.org
2011-08-06  4:38 ` jason at gcc dot gnu.org
2011-08-06 22:23 ` 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).