public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/66585] New: Internal compiler error when initialize field with lambda
@ 2015-06-18 10:19 farmaazon at gmail dot com
2015-06-18 10:32 ` [Bug c++/66585] " trippels at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: farmaazon at gmail dot com @ 2015-06-18 10:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66585
Bug ID: 66585
Summary: Internal compiler error when initialize field with
lambda
Product: gcc
Version: 5.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: farmaazon at gmail dot com
Target Milestone: ---
Created attachment 35799
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35799&action=edit
this code cause internal compiler error
I compile attached file using command:
g++ --std=c++11 bug.cpp -save-temps -v
and get following output:
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc-multilib/src/gcc-5-20150519/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --enable-libmpx --with-system-zlib --with-isl
--enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu
--disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object
--enable-linker-build-id --enable-lto --enable-plugin
--enable-install-libiberty --with-linker-hash-style=gnu
--enable-gnu-indirect-function --enable-multilib --disable-werror
--enable-checking=release --with-default-libstdcxx-abi=c++98
Thread model: posix
gcc version 5.1.0 (GCC)
COLLECT_GCC_OPTIONS='-std=c++11' '-save-temps' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/cc1plus -E -quiet -v -D_GNU_SOURCE
bug.cpp -mtune=generic -march=x86-64 -std=c++11 -fpch-preprocess -o bug.ii
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0/x86_64-unknown-linux-gnu
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/../../../../include/c++/5.1.0/backward
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/include
/usr/local/include
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-std=c++11' '-save-temps' '-v' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/cc1plus -fpreprocessed bug.ii
-quiet -dumpbase bug.cpp -mtune=generic -march=x86-64 -auxbase bug -std=c++11
-version -o bug.s
GNU C++11 (GCC) version 5.1.0 (x86_64-unknown-linux-gnu)
compiled by GNU C version 5.1.0, GMP version 6.0.0, MPFR version
3.1.2-p11, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++11 (GCC) version 5.1.0 (x86_64-unknown-linux-gnu)
compiled by GNU C version 5.1.0, GMP version 6.0.0, MPFR version
3.1.2-p11, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 2502e86cc323bb15ad071f82f9632779
bug.cpp: In instantiation of ‘someClass<T>::<lambda(T)> [with T = int]’:
bug.cpp:8:4: required from ‘struct someClass<int>::<lambda(int)>’
bug.cpp:16:17: required from here
bug.cpp:8:9: internal compiler error: Segmentation fault
[](T x)
^
>From gcc-bugs-return-489289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 18 10:19:48 2015
Return-Path: <gcc-bugs-return-489289-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59129 invoked by alias); 18 Jun 2015 10:19:47 -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 58842 invoked by uid 48); 18 Jun 2015 10:19:43 -0000
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/66554] [4.9 Regression] ICE (in expand_fix, at optabs.c:5365) on aarch64-linux-gnu
Date: Thu, 18 Jun 2015 10:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.2
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: rguenth at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: kugan at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66554-4-vr8NLx6pBl@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66554-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66554-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: 2015-06/txt/msg01621.txt.bz2
Content-length: 431
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66554
--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Indeed:
> ./cc1plus -quiet t.ii -O3 -I include
t.ii: In function ‘void fn1()’:
t.ii:3:6: error: invalid types in conversion to integer
void fn1() {
^
vector(4) signed int
vector(4) unsigned int
vect__13.24_98 = (vector(4) signed int) vect_c.21_94;
Jakub, isn't this just PR66233?
>From gcc-bugs-return-489288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 18 10:19:25 2015
Return-Path: <gcc-bugs-return-489288-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 58099 invoked by alias); 18 Jun 2015 10:19:25 -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 58043 invoked by uid 55); 18 Jun 2015 10:19:21 -0000
From: "ienkovich at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/66569] [CHKP] internal compiler error: in assign_by_spills
Date: Thu, 18 Jun 2015 10:19:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ienkovich at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ienkovich at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66569-4-U5ndVdNw7p@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66569-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66569-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: 2015-06/txt/msg01620.txt.bz2
Content-length: 763
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf569
--- Comment #1 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Author: ienkovich
Date: Thu Jun 18 10:18:48 2015
New Revision: 224602
URL: https://gcc.gnu.org/viewcvs?rev"4602&root=gcc&view=rev
Log:
gcc/
PR target/66569
* function.c (assign_bounds): Add arguments assign_regs,
assign_special, assign_bt.
(assign_parms): For vararg functions handle bounds in BT
and special slots after incoming vararg bounds.
gcc/testsuite/
PR target/66569
* gcc.target/i386/mpx/chkp-vararg.c: New test.
Added:
trunk/gcc/testsuite/gcc.target/i386/mpx/pr66569.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/function.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66585] Internal compiler error when initialize field with lambda
2015-06-18 10:19 [Bug c++/66585] New: Internal compiler error when initialize field with lambda farmaazon at gmail dot com
@ 2015-06-18 10:32 ` trippels at gcc dot gnu.org
2015-06-18 11:03 ` [Bug c++/66585] [5/6 Regression] " mpolacek at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-06-18 10:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66585
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-06-18
CC| |trippels at gcc dot gnu.org
Known to work| |4.9.2
Ever confirmed|0 |1
Known to fail| |5.0, 6.0
--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
markus@x4 tmp % cat bug.ii
class A {
template <typename, typename> using _Requires = int;
public:
template <typename _Functor, typename = _Requires<_Functor, void>>
A(_Functor);
};
template <class T> class B {
A f = [](T) {};
};
B<int> a;
markus@x4 tmp % g++ -c --std=c++11 bug.ii
bug.ii: In instantiation of ‘B<T>::<lambda(T)> [with T = int]’:
bug.ii:9:10: required from ‘struct B<int>::<lambda(int)>’
bug.ii:12:8: required from here
bug.ii:9:13: internal compiler error: Segmentation fault
A f = [](T) {};
^
0xccc84f crash_signal
../../gcc/gcc/toplev.c:369
0x62adea contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
../../gcc/gcc/tree.h:2971
0x62adea instantiate_decl(tree_node*, int, bool)
../../gcc/gcc/cp/pt.c:20496
0x66a9fc instantiate_class_template_1
../../gcc/gcc/cp/pt.c:9647
0x66a9fc instantiate_class_template(tree_node*)
../../gcc/gcc/cp/pt.c:9715
0x707c2b complete_type(tree_node*)
../../gcc/gcc/cp/typeck.c:140
0x6445bf tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool,
bool)
../../gcc/gcc/cp/pt.c:15743
0x731c98 get_nsdmi(tree_node*, bool)
../../gcc/gcc/cp/init.c:558
0x740fca walk_field_subobs
../../gcc/gcc/cp/method.c:1213
0x741ae4 synthesized_method_walk
../../gcc/gcc/cp/method.c:1539
0x745c3a get_defaulted_eh_spec(tree_node*)
../../gcc/gcc/cp/method.c:1570
0x6530eb maybe_instantiate_noexcept(tree_node*)
../../gcc/gcc/cp/pt.c:20111
0x6adeda mark_used(tree_node*, int)
../../gcc/gcc/cp/decl2.c:4991
0x5c6a80 build_over_call
../../gcc/gcc/cp/call.c:7496
0x5d1a8e build_new_method_call_1
../../gcc/gcc/cp/call.c:8212
0x5d1a8e 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:8282
0x5d2a49 build_special_member_call(tree_node*, tree_node*, vec<tree_node*,
va_gc, vl_embed>**, tree_node*, int, int)
../../gcc/gcc/cp/call.c:7822
0x736338 expand_default_init
../../gcc/gcc/cp/init.c:1728
0x736338 expand_aggr_init_1
../../gcc/gcc/cp/init.c:1829
0x737034 build_aggr_init(tree_node*, tree_node*, int, int)
../../gcc/gcc/cp/init.c:1578
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-489295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Jun 18 10:41:01 2015
Return-Path: <gcc-bugs-return-489295-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 48725 invoked by alias); 18 Jun 2015 10:41: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 48697 invoked by uid 48); 18 Jun 2015 10:40:57 -0000
From: "jmcguiness at liquidcapital dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66584] gcc differs in static, branch-prediction cost from icc in switch.
Date: Thu, 18 Jun 2015 10:41:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jmcguiness at liquidcapital dot com
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:
Message-ID: <bug-66584-4-8gHoi3yv30@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66584-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66584-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: 2015-06/txt/msg01627.txt.bz2
Content-length: 512
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf584
--- Comment #1 from Jason McG <jmcguiness at liquidcapital dot com> ---
(In reply to Jason McG from comment #0)
I got my static bp summaries wrong, corrected:
> void foo(int i) {
> switch(i) {
> case 1:
bar1(); // gcc: less likely (same as default) | icc: most likely
> break;
> case 2:
bar2(); // gcc: most likely | icc: less likely
> break;
> default:
bar3(); // gcc: less likely (same as case 1) | icc: least likely
> }
> }
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66585] [5/6 Regression] Internal compiler error when initialize field with lambda
2015-06-18 10:19 [Bug c++/66585] New: Internal compiler error when initialize field with lambda farmaazon at gmail dot com
2015-06-18 10:32 ` [Bug c++/66585] " trippels at gcc dot gnu.org
@ 2015-06-18 11:03 ` mpolacek at gcc dot gnu.org
2015-06-19 18:38 ` jason at gcc dot gnu.org
2015-06-22 12:19 ` trippels at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-06-18 11:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66585
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
r210624.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66585] [5/6 Regression] Internal compiler error when initialize field with lambda
2015-06-18 10:19 [Bug c++/66585] New: Internal compiler error when initialize field with lambda farmaazon at gmail dot com
2015-06-18 10:32 ` [Bug c++/66585] " trippels at gcc dot gnu.org
2015-06-18 11:03 ` [Bug c++/66585] [5/6 Regression] " mpolacek at gcc dot gnu.org
@ 2015-06-19 18:38 ` jason at gcc dot gnu.org
2015-06-22 12:19 ` trippels at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jason at gcc dot gnu.org @ 2015-06-19 18:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66585
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Jun 19 18:37:41 2015
New Revision: 224684
URL: https://gcc.gnu.org/viewcvs?rev=224684&root=gcc&view=rev
Log:
PR c++/66585
* pt.c (instantiate_class_template_1): Clear
cp_unevaluated_operand and c_inhibit_evaluation_warnings.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/lambda/lambda-nsdmi8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/66585] [5/6 Regression] Internal compiler error when initialize field with lambda
2015-06-18 10:19 [Bug c++/66585] New: Internal compiler error when initialize field with lambda farmaazon at gmail dot com
` (2 preceding siblings ...)
2015-06-19 18:38 ` jason at gcc dot gnu.org
@ 2015-06-22 12:19 ` trippels at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2015-06-22 12:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66585
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-22 12:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-18 10:19 [Bug c++/66585] New: Internal compiler error when initialize field with lambda farmaazon at gmail dot com
2015-06-18 10:32 ` [Bug c++/66585] " trippels at gcc dot gnu.org
2015-06-18 11:03 ` [Bug c++/66585] [5/6 Regression] " mpolacek at gcc dot gnu.org
2015-06-19 18:38 ` jason at gcc dot gnu.org
2015-06-22 12:19 ` 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).