From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 112143 invoked by alias); 17 Aug 2015 13:18:29 -0000 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 Received: (qmail 112048 invoked by uid 48); 17 Aug 2015 13:18:20 -0000 From: "cubbi at cubbi dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/67249] New: [concepts] ICE parsing f(pair) Date: Mon, 17 Aug 2015 13:18: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-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cubbi at cubbi dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg01128.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67249 Bug ID: 67249 Summary: [concepts] ICE parsing f(pair) Product: gcc Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: cubbi at cubbi dot org Target Milestone: --- ICE using gcc HEAD 6.0.0 20150816 to compile the following template concept bool C1 = true; template struct Pair {}; void f(Pair); int main() {} output: prog.cc:3:19: internal compiler error: Segmentation fault void f(Pair); ^ 0xa65abf crash_signal /home/heads/gcc/gcc-source/gcc/toplev.c:352 0x629184 get_concept_from_constraint /home/heads/gcc/gcc-source/gcc/cp/parser.c:34610 0x629184 synthesize_implicit_template_parm /home/heads/gcc/gcc-source/gcc/cp/parser.c:34648 0x6297a2 cp_parser_maybe_constrained_type_specifier /home/heads/gcc/gcc-source/gcc/cp/parser.c:15707 0x62e004 cp_parser_maybe_concept_name /home/heads/gcc/gcc-source/gcc/cp/parser.c:15732 0x62e004 cp_parser_nonclass_name /home/heads/gcc/gcc-source/gcc/cp/parser.c:15785 0x644681 cp_parser_type_name /home/heads/gcc/gcc-source/gcc/cp/parser.c:15571 0x644681 cp_parser_simple_type_specifier /home/heads/gcc/gcc-source/gcc/cp/parser.c:15485 0x634c55 cp_parser_type_specifier /home/heads/gcc/gcc-source/gcc/cp/parser.c:15154 0x637273 cp_parser_type_specifier_seq /home/heads/gcc/gcc-source/gcc/cp/parser.c:19139 0x640262 cp_parser_type_id_1 /home/heads/gcc/gcc-source/gcc/cp/parser.c:19005 0x64035e cp_parser_template_type_arg /home/heads/gcc/gcc-source/gcc/cp/parser.c:19060 0x64268b cp_parser_template_argument /home/heads/gcc/gcc-source/gcc/cp/parser.c:14578 0x64268b cp_parser_template_argument_list /home/heads/gcc/gcc-source/gcc/cp/parser.c:14488 0x64268b cp_parser_enclosed_template_argument_list /home/heads/gcc/gcc-source/gcc/cp/parser.c:25096 0x643493 cp_parser_template_id /home/heads/gcc/gcc-source/gcc/cp/parser.c:14162 0x643c21 cp_parser_class_name /home/heads/gcc/gcc-source/gcc/cp/parser.c:20289 0x63e07e cp_parser_qualifying_entity /home/heads/gcc/gcc-source/gcc/cp/parser.c:5776 0x63e07e cp_parser_nested_name_specifier_opt /home/heads/gcc/gcc-source/gcc/cp/parser.c:5462 0x64428f cp_parser_simple_type_specifier /home/heads/gcc/gcc-source/gcc/cp/parser.c:15457 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.