public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/60848] New: Crash while experimenting with c++-0x initializer lists
@ 2014-04-15 17:54 ibronstein at klocwork dot com
  2014-04-15 18:07 ` [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] " mpolacek at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ibronstein at klocwork dot com @ 2014-04-15 17:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60848

            Bug ID: 60848
           Summary: Crash while experimenting with c++-0x initializer
                    lists
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ibronstein at klocwork dot com

Created attachment 32604
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32604&action=edit
Crashing source

$ g++ -c -std=c++0x test03.cpp
================================================================================
test03.cpp: In function ‘void f()’:
test03.cpp:10:13: internal compiler error: Segmentation fault
   foo({1, 2});
             ^
0x89ffef crash_signal
    ../.././gcc/toplev.c:332
0x4e97ec build_list_conv
    ../.././gcc/cp/call.c:790
0x4e97ec implicit_conversion
    ../.././gcc/cp/call.c:1705
0x4e9e5b reference_binding
    ../.././gcc/cp/call.c:1461
0x4e9344 implicit_conversion
    ../.././gcc/cp/call.c:1695
0x4ea751 add_function_candidate
    ../.././gcc/cp/call.c:2001
0x4e86de add_candidates
    ../.././gcc/cp/call.c:5033
0x4ecead perform_overload_resolution
    ../.././gcc/cp/call.c:3817
0x4f092a build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, bool, int)
    ../.././gcc/cp/call.c:3894
0x59fe01 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
    ../.././gcc/cp/semantics.c:2220
0x55e29a cp_parser_postfix_expression
    ../.././gcc/cp/parser.c:5855
0x56041d cp_parser_unary_expression
    ../.././gcc/cp/parser.c:6729
0x560f4f cp_parser_binary_expression
    ../.././gcc/cp/parser.c:7421
0x5613ff cp_parser_assignment_expression
    ../.././gcc/cp/parser.c:7657
0x562ff3 cp_parser_expression
    ../.././gcc/cp/parser.c:7819
0x56375c cp_parser_expression
    ../.././gcc/cp/parser.c:7858
0x56375c cp_parser_expression_statement
    ../.././gcc/cp/parser.c:9120
0x55a8e7 cp_parser_statement
    ../.././gcc/cp/parser.c:8972
0x55baee cp_parser_statement_seq_opt
    ../.././gcc/cp/parser.c:9238
0x55bc0e cp_parser_compound_statement
    ../.././gcc/cp/parser.c:9192
================================================================================
>From gcc-bugs-return-449086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Apr 15 17:55:47 2014
Return-Path: <gcc-bugs-return-449086-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13000 invoked by alias); 15 Apr 2014 17:55: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 12930 invoked by uid 48); 15 Apr 2014 17:55:41 -0000
From: "ktietz at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/60830] [4.9 Regression] ICE on bootstrapping on cygwin
Date: Tue, 15 Apr 2014 17:55:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: build
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktietz at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-60830-4-IfjrLONE5j@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-60830-4@http.gcc.gnu.org/bugzilla/>
References: <bug-60830-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-04/txt/msg01106.txt.bz2
Content-length: 1311

http://gcc.gnu.org/bugzilla/show_bug.cgi?id`830

--- Comment #22 from Kai Tietz <ktietz at gcc dot gnu.org> ---
(In reply to Denis Excoffier from comment #21)
> (In reply to Kai Tietz from comment #17)
> > Just as side-note, I tried to reproduce your reported issue and did a
> > personal build of cygwin's gcc.  It worked fine in stage2.  I couldn't
> > reproduce the reported ICE on stage2.  Which brings me to the question if
> > you are using additional patches/fixes, etc
> Did you use 32bits? Did you use a recent cygwin version? There has been some
> movement recently (2014-03-28) in dtors.cc, although i believe that only
> 64bits is impacted.

I built recent gcc 4.9 on my pre-installed cygwin 32-bit (as you did too, as
logs have shown).  Only difference I made was to disable multilib.  And this
you should do too.

Additionally I built x64 version on my cygwin64 environment too.
So from my point of view it isn't a gcc issue.  As both targets are
bootstrapping without issue for me.

So, it might be an issue with recent cygwin, I can test that too.  I will
continue on that tomorrow as it takes me pretty long to built it native.
Nevetheless I doubt that I will find different results for gcc.  And if it is
really dependent on cygwin-dll version, then it seems to me indeed like a
cygwin-bug


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

* [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] Crash while experimenting with c++-0x initializer lists
  2014-04-15 17:54 [Bug c++/60848] New: Crash while experimenting with c++-0x initializer lists ibronstein at klocwork dot com
@ 2014-04-15 18:07 ` mpolacek at gcc dot gnu.org
  2014-04-15 18:13 ` ibronstein at klocwork dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-04-15 18:07 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60848

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-04-15
                 CC|                            |mpolacek at gcc dot gnu.org
            Summary|Crash while experimenting   |[4.7/4.8/4.9/4.10
                   |with c++-0x initializer     |Regression] Crash while
                   |lists                       |experimenting with c++-0x
                   |                            |initializer lists
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Confirmed.


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

* [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] Crash while experimenting with c++-0x initializer lists
  2014-04-15 17:54 [Bug c++/60848] New: Crash while experimenting with c++-0x initializer lists ibronstein at klocwork dot com
  2014-04-15 18:07 ` [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] " mpolacek at gcc dot gnu.org
@ 2014-04-15 18:13 ` ibronstein at klocwork dot com
  2014-05-05  9:15 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ibronstein at klocwork dot com @ 2014-04-15 18:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60848

--- Comment #3 from ibronstein at klocwork dot com ---
(In reply to Jonathan Wakely from comment #2)
> This is of course totally invalid code, you can't define
> std::initializer_list yourself.

Agreed.


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

* [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] Crash while experimenting with c++-0x initializer lists
  2014-04-15 17:54 [Bug c++/60848] New: Crash while experimenting with c++-0x initializer lists ibronstein at klocwork dot com
  2014-04-15 18:07 ` [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] " mpolacek at gcc dot gnu.org
  2014-04-15 18:13 ` ibronstein at klocwork dot com
@ 2014-05-05  9:15 ` rguenth at gcc dot gnu.org
  2014-06-03 13:39 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-05-05  9:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60848

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
   Target Milestone|---                         |4.7.4


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

* [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] Crash while experimenting with c++-0x initializer lists
  2014-04-15 17:54 [Bug c++/60848] New: Crash while experimenting with c++-0x initializer lists ibronstein at klocwork dot com
                   ` (2 preceding siblings ...)
  2014-05-05  9:15 ` rguenth at gcc dot gnu.org
@ 2014-06-03 13:39 ` jason at gcc dot gnu.org
  2014-06-03 14:11 ` jason at gcc dot gnu.org
  2014-07-15 19:17 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-03 13:39 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org


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

* [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] Crash while experimenting with c++-0x initializer lists
  2014-04-15 17:54 [Bug c++/60848] New: Crash while experimenting with c++-0x initializer lists ibronstein at klocwork dot com
                   ` (3 preceding siblings ...)
  2014-06-03 13:39 ` jason at gcc dot gnu.org
@ 2014-06-03 14:11 ` jason at gcc dot gnu.org
  2014-07-15 19:17 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-06-03 14:11 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jun  3 14:11:10 2014
New Revision: 211179

URL: http://gcc.gnu.org/viewcvs?rev=211179&root=gcc&view=rev
Log:
    PR c++/60848
    * call.c (is_std_init_list): Check CLASSTYPE_TEMPLATE_INFO.

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


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

* [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] Crash while experimenting with c++-0x initializer lists
  2014-04-15 17:54 [Bug c++/60848] New: Crash while experimenting with c++-0x initializer lists ibronstein at klocwork dot com
                   ` (4 preceding siblings ...)
  2014-06-03 14:11 ` jason at gcc dot gnu.org
@ 2014-07-15 19:17 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-07-15 19:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jul 15 19:16:29 2014
New Revision: 212574

URL: https://gcc.gnu.org/viewcvs?rev=212574&root=gcc&view=rev
Log:
    PR c++/60848
    PR c++/61723
    * call.c (is_std_init_list): Don't check CLASSTYPE_TEMPLATE_INFO.
    * class.c (finish_struct): Reject invalid definition of
    std::initializer_list.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist87.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/class.c
    trunk/gcc/testsuite/g++.dg/cpp0x/initlist85.C


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

end of thread, other threads:[~2014-07-15 19:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-15 17:54 [Bug c++/60848] New: Crash while experimenting with c++-0x initializer lists ibronstein at klocwork dot com
2014-04-15 18:07 ` [Bug c++/60848] [4.7/4.8/4.9/4.10 Regression] " mpolacek at gcc dot gnu.org
2014-04-15 18:13 ` ibronstein at klocwork dot com
2014-05-05  9:15 ` rguenth at gcc dot gnu.org
2014-06-03 13:39 ` jason at gcc dot gnu.org
2014-06-03 14:11 ` jason at gcc dot gnu.org
2014-07-15 19:17 ` jason 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).