public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
@ 2013-10-02 20:18 reichelt at gcc dot gnu.org
2013-10-02 21:49 ` [Bug c++/58596] " paolo.carlini at oracle dot com
` (12 more replies)
0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-10-02 20:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Bug ID: 58596
Summary: [4.8/4.9 Regression] [c++11] ICE with decltype in
non-static data member initializer
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
The following code snippet (compiled with "-std=c++11") triggers an ICE since
GCC 4.8.0:
==============================================
struct A
{
int i = [] { return decltype(i)(); }();
};
==============================================
bug.cc: In lambda function:
bug.cc:3:32: internal compiler error: Segmentation fault
int i = [] { return decltype(i)(); }();
^
0xaef4bf crash_signal
../../gcc/gcc/toplev.c:335
0x54c0cd contains_struct_check
../../gcc/gcc/tree.h:2722
0x54c0cd build_new_op_1
../../gcc/gcc/cp/call.c:5154
0x54cf47 build_new_op(unsigned int, tree_code, int, tree_node*, tree_node*,
tree_node*, tree_node**, int)
../../gcc/gcc/cp/call.c:5513
0x672529 build_x_indirect_ref(unsigned int, tree_node*, ref_operator, int)
../../gcc/gcc/cp/typeck.c:2866
0x6b165a finish_non_static_data_member(tree_node*, tree_node*, tree_node*)
../../gcc/gcc/cp/semantics.c:1580
0x6b6b5f finish_id_expression(tree_node*, tree_node*, tree_node*, cp_id_kind*,
bool, bool, bool*, bool, bool, bool, bool, char const**, unsigned int)
../../gcc/gcc/cp/semantics.c:3418
0x642cfb cp_parser_decltype_expr
../../gcc/gcc/cp/parser.c:11653
0x642cfb cp_parser_decltype
../../gcc/gcc/cp/parser.c:11781
0x65a862 cp_parser_simple_type_specifier
../../gcc/gcc/cp/parser.c:14288
0x641fe4 cp_parser_postfix_expression
../../gcc/gcc/cp/parser.c:5737
0x64483d cp_parser_unary_expression
../../gcc/gcc/cp/parser.c:7009
0x64540f cp_parser_binary_expression
../../gcc/gcc/cp/parser.c:7701
0x6458cf cp_parser_assignment_expression
../../gcc/gcc/cp/parser.c:7937
0x647733 cp_parser_expression
../../gcc/gcc/cp/parser.c:8099
0x641125 cp_parser_expression
../../gcc/gcc/cp/parser.c:8138
0x641125 cp_parser_lambda_body
../../gcc/gcc/cp/parser.c:9035
0x641125 cp_parser_lambda_expression
../../gcc/gcc/cp/parser.c:8574
0x641125 cp_parser_primary_expression
../../gcc/gcc/cp/parser.c:4230
0x642050 cp_parser_postfix_expression
../../gcc/gcc/cp/parser.c:5814
Please submit a full bug report, [etc.]
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
@ 2013-10-02 21:49 ` paolo.carlini at oracle dot com
2013-10-03 11:33 ` mpolacek at gcc dot gnu.org
` (11 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-02 21:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-10-02
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
2013-10-02 21:49 ` [Bug c++/58596] " paolo.carlini at oracle dot com
@ 2013-10-03 11:33 ` mpolacek at gcc dot gnu.org
2013-10-10 11:42 ` rguenth at gcc dot gnu.org
` (10 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-10-03 11:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r196550.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
2013-10-02 21:49 ` [Bug c++/58596] " paolo.carlini at oracle dot com
2013-10-03 11:33 ` mpolacek at gcc dot gnu.org
@ 2013-10-10 11:42 ` rguenth at gcc dot gnu.org
2013-10-16 9:50 ` jakub at gcc dot gnu.org
` (9 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-10-10 11:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.8.2
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (2 preceding siblings ...)
2013-10-10 11:42 ` rguenth at gcc dot gnu.org
@ 2013-10-16 9:50 ` jakub at gcc dot gnu.org
2013-10-17 14:47 ` paolo.carlini at oracle dot com
` (8 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-16 9:50 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.8.2 |4.8.3
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.8.2 has been released.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (3 preceding siblings ...)
2013-10-16 9:50 ` jakub at gcc dot gnu.org
@ 2013-10-17 14:47 ` paolo.carlini at oracle dot com
2013-10-17 17:17 ` paolo.carlini at oracle dot com
` (7 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-17 14:47 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Mine.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (4 preceding siblings ...)
2013-10-17 14:47 ` paolo.carlini at oracle dot com
@ 2013-10-17 17:17 ` paolo.carlini at oracle dot com
2013-10-17 19:43 ` reichelt at gcc dot gnu.org
` (6 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-17 17:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Version|4.9.0 |4.8.3
Resolution|--- |FIXED
--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Fixed mainline and 4.8.3.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (5 preceding siblings ...)
2013-10-17 17:17 ` paolo.carlini at oracle dot com
@ 2013-10-17 19:43 ` reichelt at gcc dot gnu.org
2013-10-17 21:54 ` paolo.carlini at oracle dot com
` (5 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: reichelt at gcc dot gnu.org @ 2013-10-17 19:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
--- Comment #5 from Volker Reichelt <reichelt at gcc dot gnu.org> ---
Btw, here's the link to the patch on trunk:
http://gcc.gnu.org/ml/gcc-cvs/2013-10/msg00732.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (6 preceding siblings ...)
2013-10-17 19:43 ` reichelt at gcc dot gnu.org
@ 2013-10-17 21:54 ` paolo.carlini at oracle dot com
2013-10-18 6:58 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-17 21:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Apparently today something is broken in the SVN -> Bugzilla communication.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (7 preceding siblings ...)
2013-10-17 21:54 ` paolo.carlini at oracle dot com
@ 2013-10-18 6:58 ` jakub at gcc dot gnu.org
2013-10-18 8:29 ` jakub at gcc dot gnu.org
` (3 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-18 6:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I see, but it doesn't seem to be on the svnmailer side I think, because if I
tweak svnmailer.conf to send the mail to me instead of gcc-bugzilla, it arrives
just fine. So, supposedly something broke on the bugzilla side or the
gcc-bugzilla mail processing?
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (8 preceding siblings ...)
2013-10-18 6:58 ` jakub at gcc dot gnu.org
@ 2013-10-18 8:29 ` jakub at gcc dot gnu.org
2013-10-18 11:10 ` LpSolit at netscape dot net
` (2 subsequent siblings)
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-18 8:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |LpSolit at netscape dot net
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I was told bugzilla was upgraded yesterday, so most likely it is some bug
introduced by that.
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (9 preceding siblings ...)
2013-10-18 8:29 ` jakub at gcc dot gnu.org
@ 2013-10-18 11:10 ` LpSolit at netscape dot net
2013-10-18 11:14 ` paolo.carlini at oracle dot com
2013-10-18 11:16 ` jakub at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: LpSolit at netscape dot net @ 2013-10-18 11:10 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
--- Comment #9 from Frédéric Buclin <LpSolit at netscape dot net> ---
(In reply to Jakub Jelinek from comment #8)
> I was told bugzilla was upgraded yesterday, so most likely it is some bug
> introduced by that.
Yes, see https://bugzilla.mozilla.org/show_bug.cgi?id=928331
I patched GCC Bugzilla 2 minutes ago. Should work fine again.
>From gcc-bugs-return-432115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Oct 18 11:12:18 2013
Return-Path: <gcc-bugs-return-432115-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11528 invoked by alias); 18 Oct 2013 11:12:17 -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 11473 invoked by uid 55); 18 Oct 2013 11:12:15 -0000
From: "meissner at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/58673] ICE in final_scan_insn for movti_ppc64 with base+offset address
Date: Fri, 18 Oct 2013 11:12: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.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: meissner at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: meissner at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-58673-4-1kXmc6AbCZ@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58673-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58673-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: 2013-10/txt/msg01259.txt.bz2
Content-length: 1411
http://gcc.gnu.org/bugzilla/show_bug.cgi?idX673
--- Comment #5 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Thu Oct 17 17:06:24 2013
New Revision: 203781
URL: http://gcc.gnu.org/viewcvs?rev 3781&root=gcc&view=rev
Log:
[gcc]
2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/58673
* config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
restrict TImode addresses to single indirect registers if both
-mquad-memory and -mvsx-timode are used.
(rs6000_output_move_128bit): Use quad_load_store_p to determine if
we should emit load/store quad. Remove using %y for quad memory
addresses.
* config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
constraints to allow load/store quad on machines where TImode is
not allowed in VSX registers. Use 'n' instead of 'F' constraint
for TImode to load integer constants.
[gcc/testsuite]
2013-10-17 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/58673
* gcc.target/powerpc/pr58673-1.c: New file to test whether
-mquad-word + -mno-vsx-timode causes errors.
* gcc.target/powerpc/pr58673-2.c: Likewise.
Added:
trunk/gcc/testsuite/gcc.target/powerpc/pr58673-1.c
trunk/gcc/testsuite/gcc.target/powerpc/pr58673-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c
trunk/gcc/config/rs6000/rs6000.md
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (10 preceding siblings ...)
2013-10-18 11:10 ` LpSolit at netscape dot net
@ 2013-10-18 11:14 ` paolo.carlini at oracle dot com
2013-10-18 11:16 ` jakub at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-10-18 11:14 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
--- Comment #10 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Thanks!
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Bug c++/58596] [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
` (11 preceding siblings ...)
2013-10-18 11:14 ` paolo.carlini at oracle dot com
@ 2013-10-18 11:16 ` jakub at gcc dot gnu.org
12 siblings, 0 replies; 14+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-18 11:16 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58596
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Thanks, seems to work, ran svn-mailer by hand for one commit that hasn't made
it into bugzilla (with svnmailer.conf changed so that it sends everything to me
except for gcc-bugzilla in order not to spam gcc-cvs) and PR58673 got updated
correctly.
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2013-10-18 11:16 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-02 20:18 [Bug c++/58596] New: [4.8/4.9 Regression] [c++11] ICE with decltype in non-static data member initializer reichelt at gcc dot gnu.org
2013-10-02 21:49 ` [Bug c++/58596] " paolo.carlini at oracle dot com
2013-10-03 11:33 ` mpolacek at gcc dot gnu.org
2013-10-10 11:42 ` rguenth at gcc dot gnu.org
2013-10-16 9:50 ` jakub at gcc dot gnu.org
2013-10-17 14:47 ` paolo.carlini at oracle dot com
2013-10-17 17:17 ` paolo.carlini at oracle dot com
2013-10-17 19:43 ` reichelt at gcc dot gnu.org
2013-10-17 21:54 ` paolo.carlini at oracle dot com
2013-10-18 6:58 ` jakub at gcc dot gnu.org
2013-10-18 8:29 ` jakub at gcc dot gnu.org
2013-10-18 11:10 ` LpSolit at netscape dot net
2013-10-18 11:14 ` paolo.carlini at oracle dot com
2013-10-18 11:16 ` jakub 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).