public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class
@ 2003-10-28 10:12 reichelt at gcc dot gnu dot org
  2003-10-28 10:17 ` [Bug c++/12807] [tree-ssa] ICE on " reichelt at gcc dot gnu dot org
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-28 10:12 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [tree-ssa] ICE on invalid variable sized array in class
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org

The following invalid code snippet

============================================================
template <int> struct A
{
    static int n;
    char text[n];
};

void foo() { A<0> a; }
============================================================

crashes tree-ssa:

bug.cc: In function `void foo()':
bug.cc:7: internal compiler error: in make_decl_rtl, at varasm.c:760
Please submit a full bug report, [etc.]

This might be related to PR 11267.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
@ 2003-10-28 10:17 ` reichelt at gcc dot gnu dot org
  2003-10-28 10:37 ` falk dot hueffner at student dot uni-tuebingen dot de
                   ` (14 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2003-10-28 10:17 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |ice-on-valid-code
            Summary|[tree-ssa] ICE on invalid   |[tree-ssa] ICE on variable
                   |variable sized array in     |sized array in class
                   |class                       |


------- Additional Comments From reichelt at gcc dot gnu dot org  2003-10-28 10:12 -------
Oops, the code seems to be valid.
So the ICE is even worse here.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
  2003-10-28 10:17 ` [Bug c++/12807] [tree-ssa] ICE on " reichelt at gcc dot gnu dot org
@ 2003-10-28 10:37 ` falk dot hueffner at student dot uni-tuebingen dot de
  2003-10-28 10:45 ` reichelt at igpm dot rwth-aachen dot de
                   ` (13 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: falk dot hueffner at student dot uni-tuebingen dot de @ 2003-10-28 10:37 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

"reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

> Oops, the code seems to be valid.

No, since the static member is not initialized with a const
expression.  Otherwise, gcc wouldn't know sizeof() of the class.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2003-10-28 10:45 ` reichelt at igpm dot rwth-aachen dot de
@ 2003-10-28 10:45 ` reichelt at igpm dot rwth-aachen dot de
  2003-10-28 10:48 ` reichelt at igpm dot rwth-aachen dot de
                   ` (11 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: reichelt at igpm dot rwth-aachen dot de @ 2003-10-28 10:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From reichelt at igpm dot rwth-aachen dot de  2003-10-28 10:45 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

On 28 Oct, falk dot hueffner at student dot uni-tuebingen dot de wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12807
> 
> 
> 
> ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
> Subject: Re:  [tree-ssa] ICE on variable sized array in class
> 
> "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> 
>> Oops, the code seems to be valid.
> 
> No, since the static member is not initialized with a const
> expression.  Otherwise, gcc wouldn't know sizeof() of the class.

Well, I think it's an instance of the variable sized array extension.
You just have a pointer there, as far as I understand it. The memory is
allocated in a different location at runtime. So there should be no
problem to compute sizeof().

Btw, all versions since 3.0 accept the code - and since 3.3.1 they
reject it if -pedantic is specified.



------- Additional Comments From reichelt at igpm dot rwth-aachen dot de  2003-10-28 10:45 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

On 28 Oct, falk dot hueffner at student dot uni-tuebingen dot de wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12807
> 
> 
> 
> ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
> Subject: Re:  [tree-ssa] ICE on variable sized array in class
> 
> "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> 
>> Oops, the code seems to be valid.
> 
> No, since the static member is not initialized with a const
> expression.  Otherwise, gcc wouldn't know sizeof() of the class.

Well, I think it's an instance of the variable sized array extension.
You just have a pointer there, as far as I understand it. The memory is
allocated in a different location at runtime. So there should be no
problem to compute sizeof().

Btw, all versions since 3.0 accept the code - and since 3.3.1 they
reject it if -pedantic is specified.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
  2003-10-28 10:17 ` [Bug c++/12807] [tree-ssa] ICE on " reichelt at gcc dot gnu dot org
  2003-10-28 10:37 ` falk dot hueffner at student dot uni-tuebingen dot de
@ 2003-10-28 10:45 ` reichelt at igpm dot rwth-aachen dot de
  2003-10-28 10:45 ` reichelt at igpm dot rwth-aachen dot de
                   ` (12 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: reichelt at igpm dot rwth-aachen dot de @ 2003-10-28 10:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From reichelt at igpm dot rwth-aachen dot de  2003-10-28 10:45 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

On 28 Oct, falk dot hueffner at student dot uni-tuebingen dot de wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12807
> 
> 
> 
> ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
> Subject: Re:  [tree-ssa] ICE on variable sized array in class
> 
> "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> 
>> Oops, the code seems to be valid.
> 
> No, since the static member is not initialized with a const
> expression.  Otherwise, gcc wouldn't know sizeof() of the class.

Well, I think it's an instance of the variable sized array extension.
You just have a pointer there, as far as I understand it. The memory is
allocated in a different location at runtime. So there should be no
problem to compute sizeof().

Btw, all versions since 3.0 accept the code - and since 3.3.1 they
reject it if -pedantic is specified.



------- Additional Comments From reichelt at igpm dot rwth-aachen dot de  2003-10-28 10:45 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

On 28 Oct, falk dot hueffner at student dot uni-tuebingen dot de wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12807
> 
> 
> 
> ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
> Subject: Re:  [tree-ssa] ICE on variable sized array in class
> 
> "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> 
>> Oops, the code seems to be valid.
> 
> No, since the static member is not initialized with a const
> expression.  Otherwise, gcc wouldn't know sizeof() of the class.

Well, I think it's an instance of the variable sized array extension.
You just have a pointer there, as far as I understand it. The memory is
allocated in a different location at runtime. So there should be no
problem to compute sizeof().

Btw, all versions since 3.0 accept the code - and since 3.3.1 they
reject it if -pedantic is specified.



------- Additional Comments From reichelt at igpm dot rwth-aachen dot de  2003-10-28 10:45 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

On 28 Oct, falk dot hueffner at student dot uni-tuebingen dot de wrote:

> ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
> Subject: Re:  [tree-ssa] ICE on variable sized array in class
> 
> "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> 
>> Oops, the code seems to be valid.
> 
> No, since the static member is not initialized with a const
> expression.  Otherwise, gcc wouldn't know sizeof() of the class.

Well, I think it's an instance of the variable sized array extension.
You just have a pointer there, as far as I understand it. The memory is
allocated in a different location at runtime. So there should be no
problem to compute sizeof().

Btw, all versions since 3.0 accept the code - and since 3.3.1 they
reject it if -pedantic is specified.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2003-10-28 10:45 ` reichelt at igpm dot rwth-aachen dot de
@ 2003-10-28 10:48 ` reichelt at igpm dot rwth-aachen dot de
  2003-10-28 11:07 ` falk dot hueffner at student dot uni-tuebingen dot de
                   ` (10 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: reichelt at igpm dot rwth-aachen dot de @ 2003-10-28 10:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From reichelt at igpm dot rwth-aachen dot de  2003-10-28 10:45 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

On 28 Oct, falk dot hueffner at student dot uni-tuebingen dot de wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12807
> 
> 
> 
> ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
> Subject: Re:  [tree-ssa] ICE on variable sized array in class
> 
> "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> 
>> Oops, the code seems to be valid.
> 
> No, since the static member is not initialized with a const
> expression.  Otherwise, gcc wouldn't know sizeof() of the class.

Well, I think it's an instance of the variable sized array extension.
You just have a pointer there, as far as I understand it. The memory is
allocated in a different location at runtime. So there should be no
problem to compute sizeof().

Btw, all versions since 3.0 accept the code - and since 3.3.1 they
reject it if -pedantic is specified.



------- Additional Comments From reichelt at igpm dot rwth-aachen dot de  2003-10-28 10:45 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

On 28 Oct, falk dot hueffner at student dot uni-tuebingen dot de wrote:
> PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12807
> 
> 
> 
> ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
> Subject: Re:  [tree-ssa] ICE on variable sized array in class
> 
> "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> 
>> Oops, the code seems to be valid.
> 
> No, since the static member is not initialized with a const
> expression.  Otherwise, gcc wouldn't know sizeof() of the class.

Well, I think it's an instance of the variable sized array extension.
You just have a pointer there, as far as I understand it. The memory is
allocated in a different location at runtime. So there should be no
problem to compute sizeof().

Btw, all versions since 3.0 accept the code - and since 3.3.1 they
reject it if -pedantic is specified.



------- Additional Comments From reichelt at igpm dot rwth-aachen dot de  2003-10-28 10:45 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

On 28 Oct, falk dot hueffner at student dot uni-tuebingen dot de wrote:

> ------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:31 -------
> Subject: Re:  [tree-ssa] ICE on variable sized array in class
> 
> "reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
> 
>> Oops, the code seems to be valid.
> 
> No, since the static member is not initialized with a const
> expression.  Otherwise, gcc wouldn't know sizeof() of the class.

Well, I think it's an instance of the variable sized array extension.
You just have a pointer there, as far as I understand it. The memory is
allocated in a different location at runtime. So there should be no
problem to compute sizeof().

Btw, all versions since 3.0 accept the code - and since 3.3.1 they
reject it if -pedantic is specified.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2003-10-28 10:48 ` reichelt at igpm dot rwth-aachen dot de
@ 2003-10-28 11:07 ` falk dot hueffner at student dot uni-tuebingen dot de
  2003-10-28 14:45 ` bangerth at dealii dot org
                   ` (9 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: falk dot hueffner at student dot uni-tuebingen dot de @ 2003-10-28 11:07 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 10:58 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

"reichelt at igpm dot rwth-aachen dot de" <gcc-bugzilla@gcc.gnu.org> writes:

> Well, I think it's an instance of the variable sized array
> extension.

Hm, could you point me to the documentation for that?

> You just have a pointer there, as far as I understand it. The memory
> is allocated in a different location at runtime. So there should be
> no problem to compute sizeof().
> 
> Btw, all versions since 3.0 accept the code - and since 3.3.1 they
> reject it if -pedantic is specified.

But not this:

struct A
{
    static int n;
    char text[n];
};

So it's probably rather a bug in 3.3.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2003-10-28 11:07 ` falk dot hueffner at student dot uni-tuebingen dot de
@ 2003-10-28 14:45 ` bangerth at dealii dot org
  2003-10-28 15:10 ` falk dot hueffner at student dot uni-tuebingen dot de
                   ` (8 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: bangerth at dealii dot org @ 2003-10-28 14:45 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-10-28 14:44:30
               date|                            |


------- Additional Comments From bangerth at dealii dot org  2003-10-28 14:44 -------
Variably sized arrays are new in C, but shouldn't be accepted in C++ in
strict conformance mode.

That being said, I can reproduce the ICE which is always an error.

W.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2003-10-28 14:45 ` bangerth at dealii dot org
@ 2003-10-28 15:10 ` falk dot hueffner at student dot uni-tuebingen dot de
  2003-10-29  6:13 ` gdr at integrable-solutions dot net
                   ` (7 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: falk dot hueffner at student dot uni-tuebingen dot de @ 2003-10-28 15:10 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From falk dot hueffner at student dot uni-tuebingen dot de  2003-10-28 15:01 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:

> Variably sized arrays are new in C, but shouldn't be accepted in C++
> in strict conformance mode.

Well, in C99, you can do

f(int n) { int x[n]; }

and

struct f { int a; int x[]; }

but not

struct f { int a; int x[a]; }

or something, which is what produces the ICE.


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2003-10-28 15:10 ` falk dot hueffner at student dot uni-tuebingen dot de
@ 2003-10-29  6:13 ` gdr at integrable-solutions dot net
  2003-10-29  6:48 ` gdr at integrable-solutions dot net
                   ` (6 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-10-29  6:13 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From gdr at integrable-solutions dot net  2003-10-29 06:11 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

"reichelt at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| Oops, the code seems to be valid.

No.  The program is invalid.

-- Gaby


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2003-10-29  6:13 ` gdr at integrable-solutions dot net
@ 2003-10-29  6:48 ` gdr at integrable-solutions dot net
  2003-10-30  5:53 ` pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: gdr at integrable-solutions dot net @ 2003-10-29  6:48 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From gdr at integrable-solutions dot net  2003-10-29 06:13 -------
Subject: Re:  [tree-ssa] ICE on variable sized array in class

"bangerth at dealii dot org" <gcc-bugzilla@gcc.gnu.org> writes:

| Variably sized arrays are new in C, but shouldn't be accepted in C++ in
| strict conformance mode.

I see no relation with the code you showed: It still is invalid.

-- Gaby


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (9 preceding siblings ...)
  2003-10-29  6:48 ` gdr at integrable-solutions dot net
@ 2003-10-30  5:53 ` pinskia at gcc dot gnu dot org
  2003-12-01  3:25 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-10-30  5:53 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code
   Target Milestone|---                         |tree-ssa


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

* [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (10 preceding siblings ...)
  2003-10-30  5:53 ` pinskia at gcc dot gnu dot org
@ 2003-12-01  3:25 ` pinskia at gcc dot gnu dot org
  2004-02-04  2:45 ` [Bug c++/12807] Failure to diagnose VLA in template rth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-12-01  3:25 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
   Last reconfirmed|2003-10-28 14:44:30         |2003-12-01 03:25:14
               date|                            |


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


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

* [Bug c++/12807] Failure to diagnose VLA in template
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (11 preceding siblings ...)
  2003-12-01  3:25 ` pinskia at gcc dot gnu dot org
@ 2004-02-04  2:45 ` rth at gcc dot gnu dot org
  2004-05-24 12:40 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  15 siblings, 0 replies; 17+ messages in thread
From: rth at gcc dot gnu dot org @ 2004-02-04  2:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From rth at gcc dot gnu dot org  2004-02-04 02:45 -------
The bug, IMO, is that the front end did not diagnose the error.  If it had
done that, we wouldn't have tried to do silly things with the garbage trees
in the optimizers.

Since this isn't diagnosed on mainline either, I'm moving the bug there.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-invalid-code         |
            Summary|[tree-ssa] ICE on variable  |Failure to diagnose VLA in
                   |sized array in class        |template
   Target Milestone|tree-ssa                    |3.5.0
            Version|tree-ssa                    |3.5.0


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


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

* [Bug c++/12807] Failure to diagnose VLA in template
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (12 preceding siblings ...)
  2004-02-04  2:45 ` [Bug c++/12807] Failure to diagnose VLA in template rth at gcc dot gnu dot org
@ 2004-05-24 12:40 ` pinskia at gcc dot gnu dot org
  2004-08-12  0:23 ` pinskia at gcc dot gnu dot org
  2004-11-13 13:08 ` reichelt at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-05-24 12:40 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |minor
   Target Milestone|3.5.0                       |---


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


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

* [Bug c++/12807] Failure to diagnose VLA in template
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (13 preceding siblings ...)
  2004-05-24 12:40 ` pinskia at gcc dot gnu dot org
@ 2004-08-12  0:23 ` pinskia at gcc dot gnu dot org
  2004-11-13 13:08 ` reichelt at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-12  0:23 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
OtherBugsDependingO|                            |16994
              nThis|                            |


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


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

* [Bug c++/12807] Failure to diagnose VLA in template
  2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
                   ` (14 preceding siblings ...)
  2004-08-12  0:23 ` pinskia at gcc dot gnu dot org
@ 2004-11-13 13:08 ` reichelt at gcc dot gnu dot org
  15 siblings, 0 replies; 17+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-13 13:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2004-11-13 13:08 -------
Fixed by Mark's patch for PR18429.
In fact PR12807 is more or less a duplicate of PR18429.

*** This bug has been marked as a duplicate of 18429 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2004-11-13 13:08 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid variable sized array in class reichelt at gcc dot gnu dot org
2003-10-28 10:17 ` [Bug c++/12807] [tree-ssa] ICE on " reichelt at gcc dot gnu dot org
2003-10-28 10:37 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-10-28 10:45 ` reichelt at igpm dot rwth-aachen dot de
2003-10-28 10:45 ` reichelt at igpm dot rwth-aachen dot de
2003-10-28 10:48 ` reichelt at igpm dot rwth-aachen dot de
2003-10-28 11:07 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-10-28 14:45 ` bangerth at dealii dot org
2003-10-28 15:10 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-10-29  6:13 ` gdr at integrable-solutions dot net
2003-10-29  6:48 ` gdr at integrable-solutions dot net
2003-10-30  5:53 ` pinskia at gcc dot gnu dot org
2003-12-01  3:25 ` pinskia at gcc dot gnu dot org
2004-02-04  2:45 ` [Bug c++/12807] Failure to diagnose VLA in template rth at gcc dot gnu dot org
2004-05-24 12:40 ` pinskia at gcc dot gnu dot org
2004-08-12  0:23 ` pinskia at gcc dot gnu dot org
2004-11-13 13:08 ` reichelt 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).