This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18635] [DR 504] use of uninitialised reference accepted in C++ front end
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 27 Jun 2011 11:49:42 +0000
- Subject: [Bug c++/18635] [DR 504] use of uninitialised reference accepted in C++ front end
- Auto-submitted: auto-generated
- References: <bug-18635-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18635
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |SUSPENDED
Summary|use of uninitialised |[DR 504] use of
|reference accepted in C++ |uninitialised reference
|front end |accepted in C++ front end
--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-27 11:43:43 UTC ---
This is http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3293.html#504
which is Open, so I'm suspending this. If/when that gets resolved we can
revisit this PR.
I think SUSPENDED rather than INVALID is being generous, as G++ is completely
correct to accept the code, and follows the committee's intentions:
"Implementations can warn about such constructs, and the resolution for issue
453 makes executing such code undefined behavior; that seemed to address the
situation adequately."