[LLVMbugs] [Bug 21940] parser segfault on invalid return type (compound statement)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Dec 17 14:16:05 PST 2014


David Majnemer <david.majnemer at gmail.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |david.majnemer at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #3 from David Majnemer <david.majnemer at gmail.com> ---
Seems to be fixed on trunk.

$ ~/llvm/Debug+Asserts/bin/clang -cc1 t.cpp -std=c++11
t.cpp:1:38: error: excess elements in scalar initializer
const int (&test())[3] { return {{1, 2, 3}}; }
t.cpp:1:33: note: in initialization of temporary of type 'const int [3]'
created to list-initialize this reference
const int (&test())[3] { return {{1, 2, 3}}; }

$ ~/llvm/Debug+Asserts/bin/clang --version
clang version 3.6.0 (trunk 224403) (llvm/trunk 224417)
Target: x86_64-unknown-linux-gnu
Thread model: posix

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/20141217/5866f0d4/attachment.html>

More information about the llvm-bugs mailing list