This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77875] New: C++ core issue 1288
- From: "aleksey.covacevice at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Oct 2016 19:13:03 +0000
- Subject: [Bug c++/77875] New: C++ core issue 1288
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77875
Bug ID: 77875
Summary: C++ core issue 1288
Product: gcc
Version: 6.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: aleksey.covacevice at gmail dot com
Target Milestone: ---
GCC does not fully implement the resolution for core issue 1288
(http://wg21.link/cwg1288).
Example:
int i; (int&){i};
GCC yields "invalid cast of an rvalue expression of type 'int' to type 'int&'".
More info and discussion:
http://stackoverflow.com/questions/39840117/brace-initialization-vs-parenthesis-bug