public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "reichelt at igpm dot rwth-aachen dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/12807] [tree-ssa] ICE on variable sized array in class
Date: Tue, 28 Oct 2003 10:45:00 -0000	[thread overview]
Message-ID: <20031028104540.24272.qmail@sources.redhat.com> (raw)
In-Reply-To: <20031028100505.12807.reichelt@gcc.gnu.org>

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.


  parent reply	other threads:[~2003-10-28 10:45 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-28 10:12 [Bug c++/12807] New: [tree-ssa] ICE on invalid " 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 [this message]
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

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=20031028104540.24272.qmail@sources.redhat.com \
    --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).