public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/62134] New: ICE with template alias in c++11 / c++1y mode
@ 2014-08-14 10:41 lloda at bluewin dot ch
  2014-12-14  0:33 ` [Bug c++/62134] [C++11] ICE with template alias ville.voutilainen at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: lloda at bluewin dot ch @ 2014-08-14 10:41 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 9685 bytes --]

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<class A> using type =
PermutationSign<std::tuple<>, R> [with A = std::tuple<>]’:
case0.C:100:67:   required from ‘const int FindCombination<std::tuple<>,
std::tuple<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 <class A> using type = PermutationSign<P, A>;
                                                          ^
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 <http://gcc.gnu.org/bugs.html> 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: <gcc-bugs-return-458436-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <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 15058 invoked by uid 48); 14 Aug 2014 11:08:43 -0000
From: "matthew.thompson at nasa dot gov" <gcc-bugzilla@gcc.gnu.org>
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: <bug-59093-4-1z1rbIDNPg@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59093-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59093-4@http.gcc.gnu.org/bugzilla/>
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 <matthew.thompson at nasa dot gov> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|4.8.1                       |4.9.1

--- Comment #7 from Matt Thompson <matthew.thompson at nasa dot gov> ---
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 <http://gcc.gnu.org/bugs.html> 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: <gcc-bugs-return-458437-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
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: <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 6242 invoked by uid 48); 14 Aug 2014 11:27:55 -0000
From: "avathis at esd dot ece.ntua.gr" <gcc-bugzilla@gcc.gnu.org>
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: <bug-62135-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-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 <file:///usr/share/doc/gcc-4.6/README.Bugs> 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.


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

* [Bug c++/62134] [C++11] ICE with template alias
  2014-08-14 10:41 [Bug c++/62134] New: ICE with template alias in c++11 / c++1y mode lloda at bluewin dot ch
@ 2014-12-14  0:33 ` ville.voutilainen at gmail dot com
  2014-12-14  0:33 ` ville.voutilainen at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-12-14  0:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62134

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-12-14
                 CC|                            |ville.voutilainen at gmail dot com
     Ever confirmed|0                           |1
      Known to fail|                            |4.8.2, 4.9.1, 5.0

--- Comment #1 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
Clang accepts the code.


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

* [Bug c++/62134] [C++11] ICE with template alias
  2014-08-14 10:41 [Bug c++/62134] New: ICE with template alias in c++11 / c++1y mode lloda at bluewin dot ch
  2014-12-14  0:33 ` [Bug c++/62134] [C++11] ICE with template alias ville.voutilainen at gmail dot com
@ 2014-12-14  0:33 ` ville.voutilainen at gmail dot com
  2015-01-16 17:57 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-12-14  0:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62134

--- Comment #2 from Ville Voutilainen <ville.voutilainen at gmail dot com> ---
A reduced testcase would be nice.


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

* [Bug c++/62134] [C++11] ICE with template alias
  2014-08-14 10:41 [Bug c++/62134] New: ICE with template alias in c++11 / c++1y mode lloda at bluewin dot ch
  2014-12-14  0:33 ` [Bug c++/62134] [C++11] ICE with template alias ville.voutilainen at gmail dot com
  2014-12-14  0:33 ` ville.voutilainen at gmail dot com
@ 2015-01-16 17:57 ` paolo.carlini at oracle dot com
  2015-01-16 18:16 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-01-16 17:57 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62134

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Yes, please: the Bug is now fixed for 5.0 but I'm not going to add a testcase
including the whole <tuple>.


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

* [Bug c++/62134] [C++11] ICE with template alias
  2014-08-14 10:41 [Bug c++/62134] New: ICE with template alias in c++11 / c++1y mode lloda at bluewin dot ch
                   ` (2 preceding siblings ...)
  2015-01-16 17:57 ` paolo.carlini at oracle dot com
@ 2015-01-16 18:16 ` paolo.carlini at oracle dot com
  2015-01-16 18:25 ` paolo at gcc dot gnu.org
  2015-01-16 18:36 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-01-16 18:16 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62134

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Ok, I got one.


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

* [Bug c++/62134] [C++11] ICE with template alias
  2014-08-14 10:41 [Bug c++/62134] New: ICE with template alias in c++11 / c++1y mode lloda at bluewin dot ch
                   ` (3 preceding siblings ...)
  2015-01-16 18:16 ` paolo.carlini at oracle dot com
@ 2015-01-16 18:25 ` paolo at gcc dot gnu.org
  2015-01-16 18:36 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-01-16 18:25 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62134

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Fri Jan 16 18:24:52 2015
New Revision: 219766

URL: https://gcc.gnu.org/viewcvs?rev=219766&root=gcc&view=rev
Log:
2015-01-16  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/62134
    * g++.dg/cpp0x/alias-decl-46.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/alias-decl-46.C
Modified:
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/62134] [C++11] ICE with template alias
  2014-08-14 10:41 [Bug c++/62134] New: ICE with template alias in c++11 / c++1y mode lloda at bluewin dot ch
                   ` (4 preceding siblings ...)
  2015-01-16 18:25 ` paolo at gcc dot gnu.org
@ 2015-01-16 18:36 ` paolo.carlini at oracle dot com
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-01-16 18:36 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62134

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |5.0

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.


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

end of thread, other threads:[~2015-01-16 18:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-14 10:41 [Bug c++/62134] New: ICE with template alias in c++11 / c++1y mode lloda at bluewin dot ch
2014-12-14  0:33 ` [Bug c++/62134] [C++11] ICE with template alias ville.voutilainen at gmail dot com
2014-12-14  0:33 ` ville.voutilainen at gmail dot com
2015-01-16 17:57 ` paolo.carlini at oracle dot com
2015-01-16 18:16 ` paolo.carlini at oracle dot com
2015-01-16 18:25 ` paolo at gcc dot gnu.org
2015-01-16 18:36 ` 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).