From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23070 invoked by alias); 3 Dec 2011 18:22:26 -0000 Received: (qmail 23045 invoked by uid 22791); 3 Dec 2011 18:22:24 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 03 Dec 2011 18:22:11 +0000 From: "doko at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/51395] New: [4.5/4.6 Regression] ICE in dependent_type_p (endless (?) recursion) Date: Sat, 03 Dec 2011 18:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: doko at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-12/txt/msg00254.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51395 Bug #: 51395 Summary: [4.5/4.6 Regression] ICE in dependent_type_p (endless (?) recursion) Classification: Unclassified Product: gcc Version: 4.6.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: doko@gcc.gnu.org Created attachment 25981 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25981 test case the ICE is seen with 4.5 and 4.6 branches, not with 4.4 and trunk. $ g++-4.4 -std=c++0x t.cpp t.cpp: In function 'F2 operator|(F1, F2)': t.cpp:2: error: expected primary-expression before '[' token t.cpp:2: error: expected primary-expression before '=' token t.cpp:2: error: expected primary-expression before ']' token t.cpp:2: error: expected primary-expression before 'unsigned' t.cpp:2: error: expected ';' before '{' token t.cpp:2: error: 'x' was not declared in this scope t.cpp: At global scope: t.cpp:4: error: expected primary-expression before '[' token t.cpp:4: error: expected primary-expression before ']' token t.cpp:4: error: expected primary-expression before 'float' t.cpp:4: error: unable to deduce 'auto' from '' t.cpp:5: error: expected ',' or ';' before '{' token $ g++-4.5 -std=c++0x t.cpp g++-4.5: Internal error: Segmentation fault (program cc1plus) Please submit a full bug report. $ g++-4.6 -std=c++0x t.cpp g++-4.6: internal compiler error: Segmentation fault (program cc1plus) Please submit a full bug report, $ /usr/lib/gcc-snapshot/bin/g++ -std=c++0x t.cpp t.cpp: In instantiation of 'operator|(F1, F2) [with F1 = ::; F2 = ]::': t.cpp:2:75: required from 'struct operator|(F1, F2) [with F1 = ::; F2 = ]::' t.cpp:2:83: required from 'F2 operator|(F1, F2) [with F1 = ::; F2 = ]' t.cpp:16:26: required from here t.cpp:2:83: error: no match for call to '(const) (float)' t.cpp:9:15: note: candidates are: t.cpp:2:83: note: :: (*)() t.cpp:2:83: note: candidate expects 1 argument, 2 provided t.cpp:9:17: note: t.cpp:9:17: note: candidate expects 0 arguments, 1 provided t.cpp:2:83: error: return-statement with a value, in function returning 'void' [-fpermissive] t.cpp: In instantiation of 'F2 operator|(F1, F2) [with F1 = ::; F2 = ]': t.cpp:16:26: required from here t.cpp:2:83: error: could not convert '{f2, f1}' from 'operator|(F1, F2) [with F1 = ::; F2 = ]::' to ''