public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64
@ 2014-09-29  9:03 pashev.igor at gmail dot com
  2014-09-29 11:31 ` [Bug c++/63405] [5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084 trippels at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: pashev.igor at gmail dot com @ 2014-09-29  9:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 63405
           Summary: Internal compiler error when building OpenAxiom on
                    linux/amd64
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pashev.igor at gmail dot com

Created attachment 33609
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33609&action=edit
Preprocessed file

Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=761549

Error message:
make[3]: Entering directory
'/home/pashev/work/projects/pkg-open-axiom/build-tree/src/syntax'
g++ -DHAVE_CONFIG_H -I. -I../../../src/syntax -I../../config 
-I../../../src/include -I../../x86_64-pc-linux-gnu/include -D_FORTIFY_SOURCE=2
-m64 -D_GNU_SOURCE  -std=c++11 -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -O2 -Wall -c -o libsyntax_a-sexpr.o `test -f 'sexpr.cc'
|| echo '../../../src/syntax/'`sexpr.cc
In file included from ../../x86_64-pc-linux-gnu/include/open-axiom/sexpr:47:0,
                 from ../../../src/syntax/sexpr.cc:39:
../../x86_64-pc-linux-gnu/include/open-axiom/storage: In instantiation of 'T*
OpenAxiom::Memory::Factory<T>::make(const Args& ...) [with Args =
{std::vector<const OpenAxiom::Sexpr::Syntax*, std::allocator<const
OpenAxiom::Sexpr::Syntax*> >, bool}; T = OpenAxiom::Sexpr::ListSyntax]':
../../../src/syntax/sexpr.cc:345:37:   required from here
../../x86_64-pc-linux-gnu/include/open-axiom/storage:273:52: internal compiler
error: in cp_perform_integral_promotions, at cp/typeck.c:2066
             return new(this->allocate(1)) T{args...};
                                                    ^
# g++ -v
Using built-in specs.
COLLECT_GCC=/usr/bin/g++-4.9.real
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.9.1-14'
--with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.9 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-vtable-verify
--enable-plugin --with-system-zlib --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.1 (Debian 4.9.1-14)


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

* [Bug c++/63405] [5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
@ 2014-09-29 11:31 ` trippels at gcc dot gnu.org
  2014-09-30 17:57 ` [Bug c++/63405] [4.9/5 " trippels at gcc dot gnu.org
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-29 11:31 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: 7458 bytes --]

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-09-29
                 CC|                            |trippels at gcc dot gnu.org
      Known to work|                            |4.8.3, 4.9.2
            Version|4.9.1                       |5.0
   Target Milestone|---                         |5.0
            Summary|Internal compiler error     |[5 regression] ICE in
                   |when building OpenAxiom on  |cp_perform_integral_promoti
                   |linux/amd64                 |ons, at cp/typeck.c:2084
     Ever confirmed|0                           |1
      Known to fail|                            |5.0

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
I can only reproduce this on trunk. 4.9 branch is fine.

markus@x4 tmp % cat sex.ii
struct ListSyntax {
  ListSyntax(int, bool);
};
struct A {
  template <typename... Args>
  ListSyntax *m_fn1(Args &... args) {
    return new ListSyntax{args...};
  }
};
struct B {
  const ListSyntax *m_fn2(const int &, bool);
  A lists;
};
const ListSyntax *B::m_fn2(const int &elts, bool dot) {
  return lists.m_fn1(elts, dot);
}

markus@x4 tmp % /var/tmp/gcc_test/usr/local/bin/g++ -std=c++11 -c sex.ii
sex.ii: In instantiation of ‘ListSyntax* A::m_fn1(Args& ...) [with Args =
{const int, bool}]’:
sex.ii:15:31:   required from here
sex.ii:7:34: internal compiler error: in cp_perform_integral_promotions, at
cp/typeck.c:2084
     return new ListSyntax{args...};
                                  ^
0x6b79d1 cp_perform_integral_promotions(tree_node*, int)
        ../../gcc/gcc/cp/typeck.c:2084
0x57335a convert_for_arg_passing(tree_node*, tree_node*, int)
        ../../gcc/gcc/cp/call.c:6799
0x577b83 build_over_call
        ../../gcc/gcc/cp/call.c:7211
0x5835f5 build_new_method_call_1
        ../../gcc/gcc/cp/call.c:8098
0x5835f5 build_new_method_call(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, tree_node*, int, tree_node**, int)
        ../../gcc/gcc/cp/call.c:8168
0x584569 build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
        ../../gcc/gcc/cp/call.c:7712
0x6e564b build_new_1
        ../../gcc/gcc/cp/init.c:2846
0x6e5d16 build_new(vec<tree_node*, va_gc, vl_embed>**, tree_node*, tree_node*,
vec<tree_node*, va_gc, vl_embed>**, int, int)
        ../../gcc/gcc/cp/init.c:3086
0x5fc209 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
        ../../gcc/gcc/cp/pt.c:14848
0x5db056 tsubst_expr
        ../../gcc/gcc/cp/pt.c:14272
0x5dc89c tsubst_expr
        ../../gcc/gcc/cp/pt.c:13679
0x5dbe60 tsubst_expr
        ../../gcc/gcc/cp/pt.c:13855
0x5d90fd instantiate_decl(tree_node*, int, bool)
        ../../gcc/gcc/cp/pt.c:20227
0x61f727 instantiate_pending_templates(int)
        ../../gcc/gcc/cp/pt.c:20343
0x65c9e4 cp_write_global_declarations()
        ../../gcc/gcc/cp/decl2.c:4367
Please submit a full bug report,
>From gcc-bugs-return-462843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 29 12:10:29 2014
Return-Path: <gcc-bugs-return-462843-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11601 invoked by alias); 29 Sep 2014 12:10:29 -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 11564 invoked by uid 48); 29 Sep 2014 12:10:25 -0000
From: "vries at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/61605] Potential optimization: Keep unclobbered argument registers live across function calls
Date: Mon, 29 Sep 2014 12:10:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: rtl-optimization
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: vries at gcc dot gnu.org
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: attachments.created
Message-ID: <bug-61605-4-L0Ao1cuyez@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61605-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61605-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-09/txt/msg02677.txt.bz2
Content-length: 2251

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida605

--- Comment #5 from vries at gcc dot gnu.org ---
Created attachment 33610
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id3610&actioníit
proof-of-concept patch

Using this proof-of-concept patch, we manage to get the desired code. The patch
uses the fuse-caller-save information in cprop-hardreg, and runs cprop-hardreg
one more time, after pass_fast_rtl_dce.

Obviously it's not desirable to run cprop-hardreg twice. But the pass has
problems with this code:
...
(insn 2 18 3 2 (set (reg/v:SI 1 dx [orig:86 yD.1749 ] [86])
        (reg:SI 5 di [ yD.1749 ])) test.c:9 90 {*movsi_internal}
     (expr_list:REG_DEAD (reg:SI 5 di [ yD.1749 ])
        (nil)))
(note 3 2 6 2 NOTE_INSN_FUNCTION_BEG)
(insn 6 3 7 2 (set (reg:SI 5 di)
        (reg/v:SI 1 dx [orig:86 yD.1749 ] [86])) test.c:10 90 {*movsi_internal}
     (nil))
...

The first time cprop-hardreg runs, it manages to propagate the first copy (insn
2) to the second (insn 6):
...
rescanning insn with uid = 6.
insn 6: replaced reg 1 with 5
...

So insn 6 looks like:
...
(insn 6 3 7 2 (set (reg:SI 5 di)
    (reg:SI 5 di [orig:86 yD.1749 ] [86])) test.c:10 90 {*movsi_internal}
     (nil))
...

That insn is remove by pass_fast_rtl_dce:
...
DCE: Deleting insn 6
deleting insn with uid = 6.
...

And only the second time we run it, we propagate the first copy to the add:
...
insn 9: replaced reg 1 with 5
rescanning insn with uid = 9.
...
which then looks like this:
...
(insn 9 7 15 2 (parallel [
            (set (reg:SI 0 ax [orig:87 D.1767 ] [87])
                (plus:SI (reg:SI 0 ax [orig:83 D.1767 ] [83])
                    (reg:SI 5 di [orig:86 yD.1749 ] [86])))
            (clobber (reg:CC 17 flags))
        ]) test.c:10 220 {*addsi_1}
     (expr_list:REG_DEAD (reg/v:SI 1 dx [orig:86 yD.1749 ] [86])
        (expr_list:REG_UNUSED (reg:CC 17 flags)
            (nil))))
...

That leaves insn 2 dead, which is deleted by dce during sched2:
...
DCE: Deleting insn 2
deleting insn with uid = 2.
...

I'm not sure yet why the cprop-hardreg doesn't work for both cases the first
time, but it's probably that the store to di by insn 6 is registered as a kill
by cprop-hardreg, not taking into account that it's the same value.


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
  2014-09-29 11:31 ` [Bug c++/63405] [5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084 trippels at gcc dot gnu.org
@ 2014-09-30 17:57 ` trippels at gcc dot gnu.org
  2014-09-30 18:32 ` trippels at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-30 17:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Matthias Klose from comment #3)
> you need -fstack-protector or -fstack-protector-strong to reproduce this.

That still doesn't ICE the compiler on 4.9 branch.


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
  2014-09-29 11:31 ` [Bug c++/63405] [5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084 trippels at gcc dot gnu.org
  2014-09-30 17:57 ` [Bug c++/63405] [4.9/5 " trippels at gcc dot gnu.org
@ 2014-09-30 18:32 ` trippels at gcc dot gnu.org
  2014-09-30 18:39 ` trippels at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-30 18:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to Markus Trippelsdorf from comment #4)
> (In reply to Matthias Klose from comment #3)
> > you need -fstack-protector or -fstack-protector-strong to reproduce this.
> 
> That still doesn't ICE the compiler on 4.9 branch.

Just double checked and yes, even 4.9 branch is affected (even
without -fstack-protector or -fstack-protector-strong).

However, my system gcc-4.9 compiler works fine.

Configured with: ../gcc/configure --disable-libsanitizer --disable-bootstrap
--disable-libstdcxx-pch --disable-libvtv --disable-libitm --disable-libcilkrts
--disable-libssp --disable-libgomp --disable-werror --disable-multilib
--enable-languages=c,c++
vs.
Configured with: ../gcc/configure --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.2
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.9.2/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec
--disable-fixed-point --without-ppl --without-cloog --enable-lto --enable-nls
--without-included-gettext --with-system-zlib --disable-werror
--enable-initfini-array --with-gold --enable-secureplt --disable-multilib
--disable-libvtv --disable-libitm --disable-libcilkrts --disable-libssp
--disable-libgomp --enable-cld
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.9.2/python
--enable-checking=release --disable-libgcj --enable-languages=c,c++,fortran
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-clocale=gnu
--with-boot-ldflags=-Wl,-O1,--hash-style=gnu,--as-needed,--gc-sections,--icf=safe,--icf-iterations=3
--enable-version-specific-runtime-libs --disable-libstdcxx-pch
--enable-libstdcxx-time=yes --with-build-config=bootstrap-lto


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (2 preceding siblings ...)
  2014-09-30 18:32 ` trippels at gcc dot gnu.org
@ 2014-09-30 18:39 ` trippels at gcc dot gnu.org
  2014-09-30 20:44 ` gerrit.los at gmail dot com
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-09-30 18:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Ah, the system compiler was build slightly before Jason's 
r215172 checkin from 20140911.
gcc version 4.9.2 20140911 (prerelease) (GCC)


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (3 preceding siblings ...)
  2014-09-30 18:39 ` trippels at gcc dot gnu.org
@ 2014-09-30 20:44 ` gerrit.los at gmail dot com
  2014-10-01  7:07 ` trippels at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gerrit.los at gmail dot com @ 2014-09-30 20:44 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #8 from Gert-jan Los <gerrit.los at gmail dot com> ---
Created attachment 33629
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33629&action=edit
bisect.log

--- Comment #9 from Gert-jan Los <gerrit.los at gmail dot com> ---
Created attachment 33630
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33630&action=edit
check.sh

--- Comment #10 from Gert-jan Los <gerrit.los at gmail dot com> ---
Created attachment 33631
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33631&action=edit
testcase.i


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (4 preceding siblings ...)
  2014-09-30 20:44 ` gerrit.los at gmail dot com
@ 2014-10-01  7:07 ` trippels at gcc dot gnu.org
  2014-10-08 21:06 ` jason at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-10-01  7:07 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #11 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Gert-jan, there is no need to rerun git-bisect.

The issue started with r215171 on trunk and with r215172 on 4.9 branch.
Can you take a look, Jason?


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (6 preceding siblings ...)
  2014-10-08 21:06 ` jason at gcc dot gnu.org
@ 2014-10-08 21:06 ` jason at gcc dot gnu.org
  2014-10-10  8:12 ` gerrit.los at gmail dot com
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2014-10-08 21:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #13 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct  8 21:06:00 2014
New Revision: 216014

URL: https://gcc.gnu.org/viewcvs?rev=216014&root=gcc&view=rev
Log:
    PR c++/63405
    * pt.c (tsubst_pack_expansion): Limit simple expansion to type packs.

Added:
    branches/gcc-4_9-branch/gcc/testsuite/g++.dg/cpp0x/variadic162.C
Modified:
    branches/gcc-4_9-branch/gcc/cp/ChangeLog
    branches/gcc-4_9-branch/gcc/cp/pt.c


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (5 preceding siblings ...)
  2014-10-01  7:07 ` trippels at gcc dot gnu.org
@ 2014-10-08 21:06 ` jason at gcc dot gnu.org
  2014-10-08 21:06 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: jason at gcc dot gnu.org @ 2014-10-08 21:06 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Oct  8 21:05:50 2014
New Revision: 216013

URL: https://gcc.gnu.org/viewcvs?rev=216013&root=gcc&view=rev
Log:
    PR c++/63405
    * pt.c (tsubst_pack_expansion): Limit simple expansion to type packs.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic162.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (8 preceding siblings ...)
  2014-10-10  8:12 ` gerrit.los at gmail dot com
@ 2014-10-10  8:12 ` gerrit.los at gmail dot com
  2014-10-10 17:05 ` gerrit.los at gmail dot com
  2014-10-10 17:08 ` trippels at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: gerrit.los at gmail dot com @ 2014-10-10  8:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #14 from Gert-jan Los <gerrit.los at gmail dot com> ---
2014-10-08 23:06:21 CEST schrieb jason at gcc dot gnu.org:
> --- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> ---
> Author: jason
> Date: Wed Oct  8 21:05:50 2014
> New Revision: 216013
> 
> URL: https://gcc.gnu.org/viewcvs?rev=216013&root=gcc&view=rev
> Log:
>     PR c++/63405
>     * pt.c (tsubst_pack_expansion): Limit simple expansion to type packs.

Thank you.  I can confirm this patch fixes the original issue on trunk.

In addition it fixes the attached test case which showed false warnings
about unused template pack arguments.

(Now bootstrapping gcc-4_9-branch)


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (7 preceding siblings ...)
  2014-10-08 21:06 ` jason at gcc dot gnu.org
@ 2014-10-10  8:12 ` gerrit.los at gmail dot com
  2014-10-10  8:12 ` gerrit.los at gmail dot com
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: gerrit.los at gmail dot com @ 2014-10-10  8:12 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #15 from Gert-jan Los <gerrit.los at gmail dot com> ---
Created attachment 33678
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33678&action=edit
test.log


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (9 preceding siblings ...)
  2014-10-10  8:12 ` gerrit.los at gmail dot com
@ 2014-10-10 17:05 ` gerrit.los at gmail dot com
  2014-10-10 17:08 ` trippels at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: gerrit.los at gmail dot com @ 2014-10-10 17:05 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #16 from Gert-jan Los <gerrit.los at gmail dot com> ---
2014-10-08 23:06:21 CEST schrieb jason at gcc dot gnu.org:
> --- Comment #12 from Jason Merrill <jason at gcc dot gnu.org> ---
> Author: jason
> Date: Wed Oct  8 21:05:50 2014
> New Revision: 216013
> 
> URL: https://gcc.gnu.org/viewcvs?rev=216013&root=gcc&view=rev
> Log:
>     PR c++/63405
>     * pt.c (tsubst_pack_expansion): Limit simple expansion to type packs.

The 4.9 branch is also fine.
gcc version 4.9.2 20141009 (prerelease) (GCC)

Thanks again
   Gert-jan


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

* [Bug c++/63405] [4.9/5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084
  2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
                   ` (10 preceding siblings ...)
  2014-10-10 17:05 ` gerrit.los at gmail dot com
@ 2014-10-10 17:08 ` trippels at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-10-10 17:08 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #17 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2014-10-10 17:08 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-29  9:03 [Bug c++/63405] New: Internal compiler error when building OpenAxiom on linux/amd64 pashev.igor at gmail dot com
2014-09-29 11:31 ` [Bug c++/63405] [5 regression] ICE in cp_perform_integral_promotions, at cp/typeck.c:2084 trippels at gcc dot gnu.org
2014-09-30 17:57 ` [Bug c++/63405] [4.9/5 " trippels at gcc dot gnu.org
2014-09-30 18:32 ` trippels at gcc dot gnu.org
2014-09-30 18:39 ` trippels at gcc dot gnu.org
2014-09-30 20:44 ` gerrit.los at gmail dot com
2014-10-01  7:07 ` trippels at gcc dot gnu.org
2014-10-08 21:06 ` jason at gcc dot gnu.org
2014-10-08 21:06 ` jason at gcc dot gnu.org
2014-10-10  8:12 ` gerrit.los at gmail dot com
2014-10-10  8:12 ` gerrit.los at gmail dot com
2014-10-10 17:05 ` gerrit.los at gmail dot com
2014-10-10 17:08 ` trippels 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).