public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61994] New: constexpr vector array ICE [4.9.1 regression]
@ 2014-08-01 23:32 jeremy at jeremyms dot com
  2014-08-01 23:34 ` [Bug c++/61994] " jeremy at jeremyms dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jeremy at jeremyms dot com @ 2014-08-01 23:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61994
           Summary: constexpr vector array ICE [4.9.1 regression]
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jeremy at jeremyms dot com


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

* [Bug c++/61994] constexpr vector array ICE [4.9.1 regression]
  2014-08-01 23:32 [Bug c++/61994] New: constexpr vector array ICE [4.9.1 regression] jeremy at jeremyms dot com
@ 2014-08-01 23:34 ` jeremy at jeremyms dot com
  2014-08-07  1:33 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jeremy at jeremyms dot com @ 2014-08-01 23:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jeremy Maitin-Shepard <jeremy at jeremyms dot com> ---
With gcc 4.9.1:

The following test program produces an ICE:

typedef unsigned long limb_t __attribute__ ((__vector_size__ (16),
__may_alias__));

struct X {
  limb_t limb = {1,1};
};

const X table[1][1] = {{ {} }};


g++ -std=c++11 -c test.cpp

test.cpp:7:31: internal compiler error: output_operand: invalid expression as
operand
 const X table[1][1] = {{ {} }};
                               ^

With gcc 4.9.0, the program compiles correctly.


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

* [Bug c++/61994] constexpr vector array ICE [4.9.1 regression]
  2014-08-01 23:32 [Bug c++/61994] New: constexpr vector array ICE [4.9.1 regression] jeremy at jeremyms dot com
  2014-08-01 23:34 ` [Bug c++/61994] " jeremy at jeremyms dot com
@ 2014-08-07  1:33 ` jason at gcc dot gnu.org
  2014-08-07  1:45 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-07  1:33 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2014-08-07
                 CC|                            |jason at gcc dot gnu.org
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
     Ever confirmed|0                           |1


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

* [Bug c++/61994] constexpr vector array ICE [4.9.1 regression]
  2014-08-01 23:32 [Bug c++/61994] New: constexpr vector array ICE [4.9.1 regression] jeremy at jeremyms dot com
  2014-08-01 23:34 ` [Bug c++/61994] " jeremy at jeremyms dot com
  2014-08-07  1:33 ` jason at gcc dot gnu.org
@ 2014-08-07  1:45 ` jason at gcc dot gnu.org
  2014-08-07  7:10 ` [Bug c++/61994] [4.9 Regression] constexpr vector array ICE jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-07  1:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Aug  7 01:44:06 2014
New Revision: 213688

URL: https://gcc.gnu.org/viewcvs?rev=213688&root=gcc&view=rev
Log:
    PR c++/61994
    * init.c (build_vec_init): Leave atype an ARRAY_TYPE
    if we're just returning an INIT_EXPR.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-array7.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c


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

* [Bug c++/61994] [4.9 Regression] constexpr vector array ICE
  2014-08-01 23:32 [Bug c++/61994] New: constexpr vector array ICE [4.9.1 regression] jeremy at jeremyms dot com
                   ` (2 preceding siblings ...)
  2014-08-07  1:45 ` jason at gcc dot gnu.org
@ 2014-08-07  7:10 ` jakub at gcc dot gnu.org
  2014-08-07 18:55 ` jason at gcc dot gnu.org
  2014-08-15 14:30 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-08-07  7:10 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org
   Target Milestone|---                         |4.9.2
            Summary|constexpr vector array ICE  |[4.9 Regression] constexpr
                   |[4.9.1 regression]          |vector array ICE


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

* [Bug c++/61994] [4.9 Regression] constexpr vector array ICE
  2014-08-01 23:32 [Bug c++/61994] New: constexpr vector array ICE [4.9.1 regression] jeremy at jeremyms dot com
                   ` (3 preceding siblings ...)
  2014-08-07  7:10 ` [Bug c++/61994] [4.9 Regression] constexpr vector array ICE jakub at gcc dot gnu.org
@ 2014-08-07 18:55 ` jason at gcc dot gnu.org
  2014-08-15 14:30 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-07 18:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.9.2.


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

* [Bug c++/61994] [4.9 Regression] constexpr vector array ICE
  2014-08-01 23:32 [Bug c++/61994] New: constexpr vector array ICE [4.9.1 regression] jeremy at jeremyms dot com
                   ` (4 preceding siblings ...)
  2014-08-07 18:55 ` jason at gcc dot gnu.org
@ 2014-08-15 14:30 ` jakub at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-08-15 14:30 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paul.freitag@bruker-biospin
                   |                            |.de

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
*** Bug 62123 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2014-08-15 14:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-01 23:32 [Bug c++/61994] New: constexpr vector array ICE [4.9.1 regression] jeremy at jeremyms dot com
2014-08-01 23:34 ` [Bug c++/61994] " jeremy at jeremyms dot com
2014-08-07  1:33 ` jason at gcc dot gnu.org
2014-08-07  1:45 ` jason at gcc dot gnu.org
2014-08-07  7:10 ` [Bug c++/61994] [4.9 Regression] constexpr vector array ICE jakub at gcc dot gnu.org
2014-08-07 18:55 ` jason at gcc dot gnu.org
2014-08-15 14:30 ` 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).