This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/77875] New: C++ core issue 1288


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]