[LLVMbugs] [Bug 19252] New: alignas on global variable with auto leads to crash

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Mar 26 07:14:34 PDT 2014


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

            Bug ID: 19252
           Summary: alignas on global variable with auto leads to crash
           Product: clang
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: daniel.oertwig+llvmbug at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 12288
  --> http://llvm.org/bugs/attachment.cgi?id=12288&action=edit
output after invokation

clang is crashing when I use the alignas specifier on a global variable.
This happened with pretty complex sources first, but I was able to eliminate a
(realy) minimal "not working" example:

alignas(4) auto t = true;

Explicit stating the type (bool) works. So this seems to be something with auto
and alignas.

Invocation: clang++ -std=c++11 -c issue.cpp

Tell me if I can help you in any way!

-- 
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/20140326/56b2ad1c/attachment.html>


More information about the llvm-bugs mailing list