public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/17323] ICE on invalid code if static member array initialized with size computed as division by zero
Date: Wed, 08 Sep 2004 07:04:00 -0000	[thread overview]
Message-ID: <20040908070406.20834.qmail@sourceware.org> (raw)
In-Reply-To: <20040904185519.17323.niemayer@isg.de>


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-08 07:04 -------
hmm, the problem looks like it has nothing to do with sizeof at all but it has to do with DECL_INITIAL 
for x still being an INIT_EXPR so we check the first operand for value_dependent_expression_p but 
since that just links back to x, we go into an infinite loop which causes this ICE (stack overflow).
Maybe we should have cleared out the DECL_INITIAL and put a error_node there instead.


Part of the backtrace (I cannot get all of it because it is just repeating two parts of 
alue_dependent_expression_p)

#40392 0x080eab2d in cp_parser_type_specifier (parser=0xf6e128f0, flags=Variable "flags" is not 
available.
) at /home/gates/pinskia/src/gnu/gcc/src/gcc/cp/parser.c:12809
warning: Source file is more recent than executable.

12809       CLASSTYPE_DECLARED_CLASS (type) = (class_key == class_type);
(gdb) up -1
#40391 0x080776e1 in xref_basetypes (ref=0xf6e14074, base_list=0xf6e13180) at /home/gates/
pinskia/src/gnu/gcc/src/gcc/cp/decl.c:9136
warning: Source file is more recent than executable.


Also gdb just seg faults on me alot when going through all these stack frames (yes I am using the cvs 
version, I should report a bug).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code


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


  parent reply	other threads:[~2004-09-08  7:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-04 18:55 [Bug c++/17323] New: " niemayer at isg dot de
2004-09-04 18:56 ` [Bug c++/17323] " niemayer at isg dot de
2004-09-06 16:13 ` lerdsuwa at gcc dot gnu dot org
2004-09-06 16:56 ` giovannibajo at libero dot it
2004-09-07 23:53 ` bangerth at dealii dot org
2004-09-08  7:04 ` pinskia at gcc dot gnu dot org [this message]
2005-02-10 20:32 ` [Bug c++/17323] [3.4/4.0 regression] " reichelt at gcc dot gnu dot org
2005-05-19 17:36 ` [Bug c++/17323] [3.4/4.0/4.1 " mmitchel at gcc dot gnu dot org
2005-06-14  8:31 ` 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=20040908070406.20834.qmail@sourceware.org \
    --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).