public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34917] [4.2/4.3 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
@ 2008-01-22  0:23 ` reichelt at gcc dot gnu dot org
  2008-01-22  4:55 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-22  0:23 UTC (permalink / raw)
  To: gcc-bugs



-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.2.3


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


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

* [Bug c++/34917]  New: [4.2/4.3 regression] ICE with const vector
@ 2008-01-22  0:23 reichelt at gcc dot gnu dot org
  2008-01-22  0:23 ` [Bug c++/34917] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-01-22  0:23 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE since GCC 4.2.0:

=====================================================
const int i __attribute((vector_size(8))) = {};
=====================================================

bug.cc:1: internal compiler error: in start_decl, at cp/decl.c:4130
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3 regression] ICE with const vector
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/34917] [4.2/4.3 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
  2008-01-22  0:23 ` [Bug c++/34917] " reichelt at gcc dot gnu dot org
@ 2008-01-22  4:55 ` pinskia at gcc dot gnu dot org
  2008-01-22  6:09 ` cnstar9988 at gmail dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-01-22  4:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2008-01-22 03:53 -------
This is a blocker for me.

Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |blocker
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-01-22 03:53:32
               date|                            |


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


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

* [Bug c++/34917] [4.2/4.3 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
  2008-01-22  0:23 ` [Bug c++/34917] " reichelt at gcc dot gnu dot org
  2008-01-22  4:55 ` pinskia at gcc dot gnu dot org
@ 2008-01-22  6:09 ` cnstar9988 at gmail dot com
  2008-01-22 10:49 ` jakub at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cnstar9988 at gmail dot com @ 2008-01-22  6:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from cnstar9988 at gmail dot com  2008-01-22 06:01 -------
Confirmed gcc 4.2.2.

test.cc
=====================================================
const int i __attribute((vector_size(8))) = {};
int main(int argc, char **argv)
{
  return 0;
}
=====================================================
test.cc:1: internal compiler error: in start_decl, at cp/decl.c:4018
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 


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


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

* [Bug c++/34917] [4.2/4.3 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-01-22  6:09 ` cnstar9988 at gmail dot com
@ 2008-01-22 10:49 ` jakub at gcc dot gnu dot org
  2008-01-22 16:24 ` jakub at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-22 10:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2008-01-22 09:49 -------
Testing a fix.
--- tree.c.jj124        2008-01-22 10:46:20.000000000 +0100
+++ tree.c      2008-01-22 10:46:20.000000000 +0100
@@ -3735,6 +3735,8 @@ build_type_attribute_qual_variant (tree 

       ttype = build_qualified_type (ntype, quals);
     }
+  else if (TYPE_QUALS (ttype) != quals)
+    ttype = build_qualified_type (ttype, quals);

   return ttype;
 }

build_type_attribute_qual_variant wasn't changing quals to the requested ones
if the attributes are equal.  This seems to only make a difference for vectors,
as build_type_attribute_qual_variant is static in tree.c and only called
by build_type_attribute_variant which will have always equal quals and
make_vector_type.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-01-22 03:53:32         |2008-01-22 09:49:30
               date|                            |


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


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

* [Bug c++/34917] [4.2/4.3 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-01-22 10:49 ` jakub at gcc dot gnu dot org
@ 2008-01-22 16:24 ` jakub at gcc dot gnu dot org
  2008-01-22 16:44 ` [Bug c++/34917] [4.2 " jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-22 16:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-01-22 16:18 -------
Subject: Bug 34917

Author: jakub
Date: Tue Jan 22 16:18:14 2008
New Revision: 131726

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131726
Log:
        PR c++/34917
        * tree.c (build_type_attribute_qual_variant): Call
        build_qualified_type if attributes are equal, but quals are not.

        * g++.dg/ext/vector12.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/ext/vector12.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c


-- 


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


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

* [Bug c++/34917] [4.2 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2008-01-22 16:24 ` jakub at gcc dot gnu dot org
@ 2008-01-22 16:44 ` jakub at gcc dot gnu dot org
  2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-01-22 16:44 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-01-22 16:20 -------
Fixed on the trunk.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.2/4.3 regression] ICE    |[4.2 regression] ICE with
                   |with const vector           |const vector


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


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

* [Bug c++/34917] [4.2 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2008-01-22 16:44 ` [Bug c++/34917] [4.2 " jakub at gcc dot gnu dot org
@ 2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
  2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
  2009-03-31 15:01 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-02-01 17:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jsm28 at gcc dot gnu dot org  2008-02-01 16:55 -------
4.2.3 is being released now, changing milestones of open bugs to 4.2.4.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.3                       |4.2.4


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


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

* [Bug c++/34917] [4.2 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
@ 2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
  2009-03-31 15:01 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-05-19 20:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jsm28 at gcc dot gnu dot org  2008-05-19 20:24 -------
4.2.4 is being released, changing milestones to 4.2.5.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.2.4                       |4.2.5


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


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

* [Bug c++/34917] [4.2 regression] ICE with const vector
  2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
@ 2009-03-31 15:01 ` jsm28 at gcc dot gnu dot org
  8 siblings, 0 replies; 10+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2009-03-31 15:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jsm28 at gcc dot gnu dot org  2009-03-31 15:01 -------
Closing 4.2 branch, fixed in 4.3.


-- 

jsm28 at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|                            |4.2.5
         Resolution|                            |FIXED
   Target Milestone|4.2.5                       |4.3.0


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


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

end of thread, other threads:[~2009-03-31 15:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-22  0:23 [Bug c++/34917] New: [4.2/4.3 regression] ICE with const vector reichelt at gcc dot gnu dot org
2008-01-22  0:23 ` [Bug c++/34917] " reichelt at gcc dot gnu dot org
2008-01-22  4:55 ` pinskia at gcc dot gnu dot org
2008-01-22  6:09 ` cnstar9988 at gmail dot com
2008-01-22 10:49 ` jakub at gcc dot gnu dot org
2008-01-22 16:24 ` jakub at gcc dot gnu dot org
2008-01-22 16:44 ` [Bug c++/34917] [4.2 " jakub at gcc dot gnu dot org
2008-02-01 17:04 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:47 ` jsm28 at gcc dot gnu dot org
2009-03-31 15:01 ` jsm28 at gcc dot gnu dot 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).