public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63786] New: crash on argument pack in switch case
@ 2014-11-09 2:26 rhainin1 at binghamton dot edu
2014-11-23 15:20 ` [Bug c++/63786] " paolo.carlini at oracle dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: rhainin1 at binghamton dot edu @ 2014-11-09 2:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63786
Bug ID: 63786
Summary: crash on argument pack in switch case
Product: gcc
Version: 4.9.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rhainin1 at binghamton dot edu
Created attachment 33924
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33924&action=edit
minimal code to reproduce
using "case Is:" where Is is an argument pack (invalid code) causes gcc to
crash.
gcc-4.9.2 configured with "--enable-languages=c,c++" on 64-bit Debian 7.4
I have also compiled with -Wall -Wextra -pedantic -g and tried -std=c++14, with
no difference.
$ g++ -std=c++11 expandcase.cpp
expandcase.cpp: In instantiation of ‘int f(int) [with int ...Is = {1, 2, 3}]’:
expandcase.cpp:10:15: required from here
expandcase.cpp:4:9: internal compiler error: unexpected expression ‘Is’ of kind
template_parm_index
case Is:
^
0x66b440 cxx_eval_constant_expression
../../src/gcc/cp/semantics.c:9822
0x66cf16 cxx_eval_outermost_constant_expr
../../src/gcc/cp/semantics.c:9842
0x5a9d99 finish_case_label(unsigned int, tree_node*, tree_node*)
../../src/gcc/cp/decl.c:3190
0x5ce90c tsubst_expr
../../src/gcc/cp/pt.c:13675
0x5ce7e4 tsubst_expr
../../src/gcc/cp/pt.c:13443
0x5cee5d tsubst_expr
../../src/gcc/cp/pt.c:13648
0x5ce092 tsubst_expr
../../src/gcc/cp/pt.c:13668
0x5cee5d tsubst_expr
../../src/gcc/cp/pt.c:13648
0x5cdc12 instantiate_decl(tree_node*, int, bool)
../../src/gcc/cp/pt.c:19971
0x5e483b instantiate_pending_templates(int)
../../src/gcc/cp/pt.c:20087
0x5fd24f cp_write_global_declarations()
../../src/gcc/cp/decl2.c:4340
>From gcc-bugs-return-466100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Nov 09 02:30:27 2014
Return-Path: <gcc-bugs-return-466100-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17862 invoked by alias); 9 Nov 2014 02:30:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 17729 invoked by uid 48); 9 Nov 2014 02:30:04 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/63787] New: [5 Regression] profiledbootstrap failure with bootstrap-lto
Date: Sun, 09 Nov 2014 02:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
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 cc
Message-ID: <bug-63787-4@http.gcc.gnu.org/bugzilla/>
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: 2014-11/txt/msg00572.txt.bz2
Content-length: 3834
https://gcc.gnu.org/bugzilla/show_bug.cgi?idc787
Bug ID: 63787
Summary: [5 Regression] profiledbootstrap failure with
bootstrap-lto
Product: gcc
Version: 5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: hjl.tools at gmail dot com
CC: rguenth at gcc dot gnu.org
On Linux/x86-64, configured with
--prefix=/export/project/git/gcc-regression-bootstrap/master/217178/usr
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld
MAKEINFO=/usr/bin/false --enable-languages=c,c++ --enable-bootstrap
--with-build-config=bootstrap-lto --disable-werror --disable-multilib
--disable-libcc1
r217178 caused:
/export/project/git/gcc-regression-bootstrap/master/217178/bld/./prev-gcc/xg++
-B/export/project/git/gcc-regression-bootstrap/master/217178/bld/./prev-gcc/
-B/export/project/git/gcc-regression-bootstrap/master/217178/usr/x86_64-unknown-linux-gnu/bin/
-nostdinc++
-B/export/project/git/gcc-regression-bootstrap/master/217178/bld/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/export/project/git/gcc-regression-bootstrap/master/217178/bld/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-I/export/project/git/gcc-regression-bootstrap/master/217178/bld/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu
-I/export/project/git/gcc-regression-bootstrap/master/217178/bld/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
-I/export/project/git/gcc-regression/gcc/libstdc++-v3/libsupc++
-L/export/project/git/gcc-regression-bootstrap/master/217178/bld/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/export/project/git/gcc-regression-bootstrap/master/217178/bld/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-g -O2 -flto=jobserver -frandom-seed=1 -fprofile-use -DIN_GCC
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings
-fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc
-o build/genmatch \
build/genmatch.o ../libcpp/libcpp.a ../libiberty/libiberty.a build/errors.o
build/vec.o build/hash-table.o .././libiberty/libiberty.a
/export/project/git/gcc-regression/gcc/gcc/genmatch.c: In function
\u2018get_operator\u2019:
/export/project/git/gcc-regression/gcc/gcc/genmatch.c:329:1: internal compiler
error: in get_string_length, at tree-ssa-strlen.c:428
get_operator (const char *id)
^
0x10e9c2a get_string_length
/export/project/git/gcc-regression/gcc/gcc/tree-ssa-strlen.c:428
0x10eb4e8 handle_builtin_strlen
/export/project/git/gcc-regression/gcc/gcc/tree-ssa-strlen.c:910
0x10ef194 strlen_optimize_stmt
/export/project/git/gcc-regression/gcc/gcc/tree-ssa-strlen.c:1904
0x10ef194 strlen_dom_walker::before_dom_children(basic_block_def*)
/export/project/git/gcc-regression/gcc/gcc/tree-ssa-strlen.c:2109
0x17d9c4c dom_walker::walk(basic_block_def*)
/export/project/git/gcc-regression/gcc/gcc/domwalk.c:188
0x10e7c22 execute
/export/project/git/gcc-regression/gcc/gcc/tree-ssa-strlen.c:2182
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [/tmp/ccbyp8aP.ltrans12.ltrans.o] Error 1
make[4]: *** Waiting for unfinished jobs....
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/local/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status
make[3]: *** [build/genmatch] Error 1
with "make profiledbootstrap".
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/63786] crash on argument pack in switch case
2014-11-09 2:26 [Bug c++/63786] New: crash on argument pack in switch case rhainin1 at binghamton dot edu
@ 2014-11-23 15:20 ` paolo.carlini at oracle dot com
2014-11-25 13:49 ` paolo.carlini at oracle dot com
2014-11-25 13:49 ` paolo at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-11-23 15:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63786
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-11-23
CC|rhainin1 at binghamton dot edu |
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/63786] crash on argument pack in switch case
2014-11-09 2:26 [Bug c++/63786] New: crash on argument pack in switch case rhainin1 at binghamton dot edu
2014-11-23 15:20 ` [Bug c++/63786] " paolo.carlini at oracle dot com
@ 2014-11-25 13:49 ` paolo.carlini at oracle dot com
2014-11-25 13:49 ` paolo at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-11-25 13:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63786
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/63786] crash on argument pack in switch case
2014-11-09 2:26 [Bug c++/63786] New: crash on argument pack in switch case rhainin1 at binghamton dot edu
2014-11-23 15:20 ` [Bug c++/63786] " paolo.carlini at oracle dot com
2014-11-25 13:49 ` paolo.carlini at oracle dot com
@ 2014-11-25 13:49 ` paolo at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu.org @ 2014-11-25 13:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63786
--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Tue Nov 25 13:48:49 2014
New Revision: 218043
URL: https://gcc.gnu.org/viewcvs?rev=218043&root=gcc&view=rev
Log:
/cp
2014-11-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/63786
* parser.c (cp_parser_label_for_labeled_statement): Check the case
with check_for_bare_parameter_packs.
/testsuite
2014-11-25 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/63786
* g++.dg/cpp0x/variadic163.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic163.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-25 13:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-09 2:26 [Bug c++/63786] New: crash on argument pack in switch case rhainin1 at binghamton dot edu
2014-11-23 15:20 ` [Bug c++/63786] " paolo.carlini at oracle dot com
2014-11-25 13:49 ` paolo.carlini at oracle dot com
2014-11-25 13:49 ` paolo 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).