https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62134 Bug ID: 62134 Summary: ICE with template alias in c++11 / c++1y mode Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lloda at bluewin dot ch Created attachment 33318 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33318&action=edit A test case. The problematic section is marked with MAKE_ICE. Somewhat reduced case0.C attached. > $CXX -v Using built-in specs. COLLECT_GCC=/opt/gcc-4.9/bin/g++ COLLECT_LTO_WRAPPER=/mnt/end/opt/gcc-4.9.1/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.9.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: ../../src/gcc-4.9.1/configure --prefix=/opt/gcc-4.9.1 --enable-lto --enable-languages=c,c++,fortran --disable-multilib Thread model: posix gcc version 4.9.1 (GCC) > $CXX case0.C -DMAKE_ICE -std=c++11 case0.C: In substitution of ‘template using type = PermutationSign, R> [with A = std::tuple<>]’: case0.C:100:67: required from ‘const int FindCombination, std::tuple > >::where’ case0.C:135:27: required from here case0.C:115:58: internal compiler error: in retrieve_specialization, at cp/pt.c:1048 template using type = PermutationSign; ^ 0x55ebb7 retrieve_specialization ../../../src/gcc-4.9.1/gcc/cp/pt.c:1045 0x570136 tsubst_decl ../../../src/gcc-4.9.1/gcc/cp/pt.c:11045 0x568e57 tsubst(tree_node*, tree_node*, int, tree_node*) ../../../src/gcc-4.9.1/gcc/cp/pt.c:11525 0x57160b instantiate_template_1 ../../../src/gcc-4.9.1/gcc/cp/pt.c:15538 0x57160b instantiate_template(tree_node*, tree_node*, int) ../../../src/gcc-4.9.1/gcc/cp/pt.c:15588 0x568f78 instantiate_alias_template ../../../src/gcc-4.9.1/gcc/cp/pt.c:15618 0x568f78 tsubst(tree_node*, tree_node*, int, tree_node*) ../../../src/gcc-4.9.1/gcc/cp/pt.c:11552 0x56cc35 lookup_template_class_1 ../../../src/gcc-4.9.1/gcc/cp/pt.c:7660 0x56cc35 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) ../../../src/gcc-4.9.1/gcc/cp/pt.c:7886 0x569590 tsubst(tree_node*, tree_node*, int, tree_node*) ../../../src/gcc-4.9.1/gcc/cp/pt.c:11781 0x570f65 tsubst_qualified_id ../../../src/gcc-4.9.1/gcc/cp/pt.c:12426 0x5617d1 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../../src/gcc-4.9.1/gcc/cp/pt.c:14411 0x561310 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../../src/gcc-4.9.1/gcc/cp/pt.c:14332 0x565e0f tsubst_expr ../../../src/gcc-4.9.1/gcc/cp/pt.c:14016 0x569a4c tsubst_template_arg ../../../src/gcc-4.9.1/gcc/cp/pt.c:9454 0x56dda2 tsubst_template_args ../../../src/gcc-4.9.1/gcc/cp/pt.c:9993 0x56e2c7 tsubst_aggr_type ../../../src/gcc-4.9.1/gcc/cp/pt.c:10190 0x568725 tsubst(tree_node*, tree_node*, int, tree_node*) ../../../src/gcc-4.9.1/gcc/cp/pt.c:12122 0x56dda2 tsubst_template_args ../../../src/gcc-4.9.1/gcc/cp/pt.c:9993 0x568948 tsubst(tree_node*, tree_node*, int, tree_node*) ../../../src/gcc-4.9.1/gcc/cp/pt.c:11909 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. >From gcc-bugs-return-458436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 14 11:08:51 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 15105 invoked by alias); 14 Aug 2014 11:08:50 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 15058 invoked by uid 48); 14 Aug 2014 11:08:43 -0000 From: "matthew.thompson at nasa dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/59093] Segfault in gfc_trans_pointer_assignment Date: Thu, 14 Aug 2014 11:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: matthew.thompson at nasa dot gov X-Bugzilla-Status: NEW 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: version Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg00933.txt.bz2 Content-length: 1401 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59093 Matt Thompson changed: What |Removed |Added ---------------------------------------------------------------------------- Version|4.8.1 |4.9.1 --- Comment #7 from Matt Thompson --- I'm not sure if anyone is even looking at this bug anymore, but I wanted to say it is still present in gcc 4.9.1. Using the test from janus@gcc.gnu.org: $ gfortran --version GNU Fortran (GCC) 4.9.1 Copyright (C) 2014 Free Software Foundation, Inc. GNU Fortran comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of GNU Fortran under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING $ gfortran test_from_gcc.F90 test_from_gcc.F90: In function ‘mapl_locstreamget’: test_from_gcc.F90:23:0: internal compiler error: Segmentation fault GRIDIM => LocStream%Ptr%Tiling(:)%IM ^ 0x50f628 ??? ../sysdeps/x86_64/elf/start.S:113 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. The bug also still exists with 4.8.3. Does anyone have any idea if this will ever be fixed? >From gcc-bugs-return-458437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 14 11:28:01 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 6295 invoked by alias); 14 Aug 2014 11:28:00 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 6242 invoked by uid 48); 14 Aug 2014 11:27:55 -0000 From: "avathis at esd dot ece.ntua.gr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/62135] New: f951: internal compiler error: Segmentation fault Date: Thu, 14 Aug 2014 11:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 4.6.3 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: avathis at esd dot ece.ntua.gr 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 attachments.created 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: 2014-08/txt/msg00934.txt.bz2 Content-length: 1074 https://gcc.gnu.org/bugzilla/show_bug.cgi?idb135 Bug ID: 62135 Summary: f951: internal compiler error: Segmentation fault Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: avathis at esd dot ece.ntua.gr Created attachment 33319 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id3319&actioníit Error with program listing If (by mistake) in a SELECT CASE block, you type a statement like: CASE ('2':'7','9':'0'), gfortran crashes without giving any clue about the error. The only output is: "f951: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See for instructions." If instead you type the statement as: CASE ('9':'0'), program compiles normally, the same is true if you type: CASE ('2':'7','0':'9'). Full test program is attached.