public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53741] New: ICE on lambda calling static template member function with explicit template argument specification
@ 2012-06-21  8:57 lunow at math dot hu-berlin.de
  2012-06-21 14:31 ` [Bug c++/53741] " daniel.kruegler at googlemail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: lunow at math dot hu-berlin.de @ 2012-06-21  8:57 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53741
           Summary: ICE on lambda calling static template member function
                    with explicit template argument specification
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: lunow@math.hu-berlin.de


Created attachment 27675
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27675
testcase

Attached is a testcase ICEing on 4.6.3 and 4.7.1.
This bug is related to bug 52183 and bug 51494.

GCC 4.6.3 Output:
C:\dev\projects\compiler test>gcc -std=c++0x gcc_test4.cpp
gcc_test4.cpp: In lambda function:
gcc_test4.cpp:8:7:   instantiated from 'X::foo(T) [with T = int]::<lambda()>'
gcc_test4.cpp:8:5:   instantiated from 'void X::foo(T) [with T = int]'
gcc_test4.cpp:15:10:   instantiated from here
gcc_test4.cpp:8:11: internal compiler error: in push_class_level_binding, at
cp/name-lookup.c:2833
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

GCC 4.7.1 Output:
C:\dev\projects\compiler test>gcc -std=c++0x gcc_test4.cpp
gcc_test4.cpp: In instantiation of 'X::foo(T) [with T = int]::<lambda()>':
gcc_test4.cpp:8:7:   required from 'struct X::foo(T) [with T =
int]::<lambda()>'
gcc_test4.cpp:8:5:   required from 'void X::foo(T) [with T = int]'
gcc_test4.cpp:15:10:   required from here
gcc_test4.cpp:8:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

end of thread, other threads:[~2012-10-10 10:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-21  8:57 [Bug c++/53741] New: ICE on lambda calling static template member function with explicit template argument specification lunow at math dot hu-berlin.de
2012-06-21 14:31 ` [Bug c++/53741] " daniel.kruegler at googlemail dot com
2012-10-10 10:03 ` paolo.carlini at oracle dot com
2012-10-10 10:16 ` paolo at gcc dot gnu.org
2012-10-10 10:17 ` paolo.carlini at oracle dot com

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