public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/5675: const variables wrongly considered part of constant expressions
@ 2002-02-12 13:46 Joseph Myers
0 siblings, 0 replies; only message in thread
From: Joseph Myers @ 2002-02-12 13:46 UTC (permalink / raw)
To: gcc-gnats; +Cc: jsm28
>Number: 5675
>Category: c
>Synopsis: const variables wrongly considered part of constant expressions
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: accepts-illegal
>Submitter-Id: net
>Arrival-Date: Tue Feb 12 13:46:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Joseph S. Myers
>Release: 3.1 20020212 (experimental)
>Organization:
none
>Environment:
System: Linux digraph 2.2.20 #2 Sat Nov 10 16:44:22 UTC 2001 i686 unknown
Architecture: i686
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ../gcc-cvs/configure --prefix=/opt/gcc/mainline --disable-shared --enable-threads=posix --with-system-zlib
>Description:
In some circumstances, GCC wrongly accepts const variables as part of
constant expressions when compiling C.
>How-To-Repeat:
The XFAILing tests in gcc.dg/c9[09]-const-expr-3.c.
>Fix:
Fixing the underlying problems associated with
decl_constant_value_for_broken_optimization, moving such optimizations
until after all constraint checking, might help. Or keep proper track
for every subexpression of whether it is a constant expression (see
also c/456).
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-12 21:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-12 13:46 c/5675: const variables wrongly considered part of constant expressions Joseph Myers
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).