public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/9044: Incorrect error report about constant member not being initialised
@ 2002-12-23 12:26 jmc
0 siblings, 0 replies; 3+ messages in thread
From: jmc @ 2002-12-23 12:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 9044
>Category: c++
>Synopsis: Incorrect error report about constant member not being initialised
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Dec 23 12:26:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: John Collins
>Release: g++-3.2 (GCC) 3.2 (OK with 2.96)
>Organization:
>Environment:
Mandrake Linux 9.0 3.2-1mdk
>Description:
class class1 {
public:
int fld1;
int fld2;
};
class class2 {
public:
const unsigned type;
int class1::*pmem;
class2(const unsigned t, int class1::*aa) : type(t), pmem(aa) { }
};
class2 inst1(0, &class1::fld1);
class2 inst2(1, &class1::fld2);
Compilation reports error 'uninitialized const member `class2::type' for the last two statements.
Goes away if you remove the "pmem" member.
>How-To-Repeat:
>Fix:
Remove "const" from members in class with pointer to member fields in.
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/9044: Incorrect error report about constant member not being initialised
@ 2003-01-06 22:38 bangerth
0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2003-01-06 22:38 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, jmc, nobody
Synopsis: Incorrect error report about constant member not being initialised
State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Mon Jan 6 14:38:55 2003
State-Changed-Why:
This is fixed on all present branches (3.2.2pre, 3.3pre, mainline).
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9044
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: c++/9044: Incorrect error report about constant member not being initialised
@ 2002-12-23 12:46 Andrew Pinski
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Pinski @ 2002-12-23 12:46 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/9044; it has been noted by GNATS.
From: Andrew Pinski <pinskia@physics.uc.edu>
To: jmc@xisl.com
Cc: Andrew Pinski <pinskia@physics.uc.edu>, gcc-gnats@gcc.gnu.org
Subject: Re: c++/9044: Incorrect error report about constant member not being initialised
Date: Mon, 23 Dec 2002 15:38:40 -0500
It works on gcc version 3.4 20021223 (experimental) and in gcc version
3.3 20021216 (experimental) but not in gcc version 3.2 20020610
(experimental).
Thanks,
Andrew Pinski
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-01-06 22:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-23 12:26 c++/9044: Incorrect error report about constant member not being initialised jmc
2002-12-23 12:46 Andrew Pinski
2003-01-06 22:38 bangerth
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).