public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/3476: wrong `const' behaviour
@ 2001-06-29  5:36 kunert
  0 siblings, 0 replies; 2+ messages in thread
From: kunert @ 2001-06-29  5:36 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3476
>Category:       c++
>Synopsis:       wrong `const' behaviour
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 29 05:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Kunert
>Release:        3.0.1 prerelease
>Organization:
>Environment:
Configured with: ../gcc/configure i686-pc-linux-gnu --enable-shared --prefix=/opt --enable-languages=c,c++,f77
Thread model: single
gcc version 3.0.1 20010626 (prerelease)
>Description:
This code:

class AAA{};
const AAA a;

results in the message:

test.cc:3: uninitialized const `a'
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: c++/3476: wrong `const' behaviour
@ 2001-06-29  6:39 nathan
  0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2001-06-29  6:39 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, kunert, nobody

Synopsis: wrong `const' behaviour

State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Fri Jun 29 06:39:19 2001
State-Changed-Why:
    Not a bug. a const object must have an initializer [8.5]/9
    Yeay even though it has no members. You need an '= {}'.
    I think there might be a defect report about that.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3476&database=gcc


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

end of thread, other threads:[~2001-06-29  6:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-29  5:36 c++/3476: wrong `const' behaviour kunert
2001-06-29  6:39 nathan

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).