[Bug c++/49176] [4.6 Regression][c++0x] valid code rejected with "error: uninitialized const"
fabien at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri May 27 16:33:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49176
fabien at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
AssignedTo|fabien at gcc dot gnu.org |unassigned at gcc dot
| |gnu.org
--- Comment #6 from fabien at gcc dot gnu.org 2011-05-27 16:31:42 UTC ---
(In reply to comment #5)
> Just tried -r174238: was already broken.
Thank you Paolo.
I've just played a little with it, it seems that to avoid the uninitialized
diagnostic from check_for_uninitialized_const_var, the constness of b have to
be removed at some point. It is not removed in c++0X mode for 4.6.
Let's CC Jason ...
More information about the Gcc-bugs
mailing list