public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "sam at wavestore dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
Date: Wed, 05 Feb 2014 14:03:00 -0000	[thread overview]
Message-ID: <bug-59832-4-lnm0Ht505A@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59832-4@http.gcc.gnu.org/bugzilla/>

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

Sam Kellett <sam at wavestore dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at wavestore dot com

--- Comment #1 from Sam Kellett <sam at wavestore dot com> ---
Created attachment 32048
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32048&action=edit
Preprocessed source

I think this is another example of the same bug:

#include <vector>
struct Message
{
  typedef union {
    char byte;
    const char *str;
  } Parameter;

  Parameter p1;
  Parameter p2;
};

int main()
{
  std::vector<Message> messages_;

  messages_.push_back({{ .byte = 'a' }});

  Message message = {{ .byte = 'a' }, { .str = "Hello World" }};
  messages_.push_back(message);

  messages_.push_back({{ .byte = 'a' }, { .str = "Hello World" }});
}

Outputs:

union.cpp: In function ‘int main()’:
union.cpp:23:66: internal compiler error: in reshape_init_class, at
cp/decl.c:5216
   messages_.push_back({{ .byte = 'a' }, { .str = "Hello World" }});
                                                                  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccbxyQRY.out file, please attach this to
your bugreport.
>From gcc-bugs-return-442656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Feb 05 14:05:57 2014
Return-Path: <gcc-bugs-return-442656-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 24322 invoked by alias); 5 Feb 2014 14:05:56 -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 24292 invoked by uid 48); 5 Feb 2014 14:05:53 -0000
From: "sam at wavestore dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59832] [c++11] ICE in reshape_init_class with initializer list
Date: Wed, 05 Feb 2014 14:05: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: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: sam at wavestore dot com
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:
Message-ID: <bug-59832-4-fV9wMP1v3g@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59832-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59832-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-02/txt/msg00413.txt.bz2
Content-length: 148

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY832

--- Comment #2 from Sam Kellett <sam at wavestore dot com> ---
Using gcc v4.8.2 I should add...


  parent reply	other threads:[~2014-02-05 14:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-15 17:14 [Bug c++/59832] New: [c++11][4.8, 4.9] " ppluzhnikov at google dot com
2014-01-17 10:02 ` [Bug c++/59832] [c++11] " paolo.carlini at oracle dot com
2014-02-05 14:03 ` sam at wavestore dot com [this message]
2014-05-04 14:58 ` ppluzhnikov at google dot com
2014-06-08 17:48 ` ppluzhnikov at google dot com
2014-06-27  1:53 ` ppluzhnikov at google dot com
2015-03-07 19:51 ` ppluzhnikov at google dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-59832-4-lnm0Ht505A@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).