[llvm-bugs] [Bug 31432] New: clang 290137 hangs/crashes with -std=cxx-1z

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 19 14:48:09 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=31432

            Bug ID: 31432
           Summary: clang 290137 hangs/crashes with -std=cxx-1z
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
    Classification: Unclassified

this hangs:

$~/bug/1522$ cat file1.cpp
void mbstate_t() { __builtin_constant_p(0); }
namespace std {
using ::mbstate_t;
}
namespace {
extern "C" void vfprintf();
}
$ clang++ -c -std=c++1z file1.cpp
file1.cpp:1:20: warning: ignoring return value of function declared with const
attribute [-Wunused-value]
void mbstate_t() { __builtin_constant_p(0); }
                   ^~~~~~~~~~~~~~~~~~~~ ~

and this crashes:

$ cat file1.cpp
void mbstate_t() { __builtin_constant_p(0); }
namespace {
extern "C" void vfprintf();
}
$ clang++ -c -std=c++1z file1.cpp
file1.cpp:1:20: warning: ignoring return value of function declared with const
attribute [-Wunused-value]
void mbstate_t() { __builtin_constant_p(0); }
                   ^~~~~~~~~~~~~~~~~~~~ ~


problem only when std==c++1z, was reduced from real library code.

-- 
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/20161219/54870694/attachment.html>


More information about the llvm-bugs mailing list