[LLVMbugs] [Bug 16211] rvalue references with template static initializers

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 17 14:23:02 PDT 2013


http://llvm.org/bugs/show_bug.cgi?id=16211

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
r183883 just hid the crash by avoiding the particular codepath. The actual fix
was in r184017, which added the missing MaterializeTemporaryExpr to the cast to
rvalue reference.

There were probably other ways to tickle the crash between r183883 and r184017.
And here's a repro which didn't crash but did reject-valid until r184017:

  struct S { int k : (int&&)1; };

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130617/2c030236/attachment.html>


More information about the llvm-bugs mailing list