https://llvm.org/bugs/show_bug.cgi?id=27666
Bug ID: 27666 Summary: Regression(r268727): clang-cl crashes parsing qos2.h Product: clang Version: unspecified Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: nicolaswe...@gmx.de CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified Repro is: #include <qos2.h> It reduces down to: typedef struct in_addr { union { struct { unsigned char s_b1,s_b2,s_b3,s_b4; } S_un_b; struct { unsigned short s_w1,s_w2; } S_un_w; unsigned long S_addr; } S_un; } IN_ADDR; __inline void f(const IN_ADDR __unaligned *a) { IN_ADDR local_addr = *a; } C:\src\llvm-build>bin\clang-cl /c small.cc small.cc(20,13) : error: no matching constructor for initialization of 'IN_ADDR' (aka 'in_addr') IN_ADDR Ipv4Address = *a; ^ ~~ Assertion failed: CVR && "unexpected qualifiers mismatch", file C:\src\llvm-rw\tools\clang\lib\Sema\SemaOverload.cpp, li ne 9118 Could not write crash dump file: permission denied #0 0x000000014089de45 (C:\src\llvm-build\bin\clang-cl.exe+0xf6de45) #1 0x000007feef79ee1d raise (C:\Windows\system32\MSVCR120.dll+0x6ee1d) #2 0x000007feef7a4a14 abort (C:\Windows\system32\MSVCR120.dll+0x74a14) #3 0x000007feef7a5d14 _wassert (C:\Windows\system32\MSVCR120.dll+0x75d14) #4 0x0000000141855e50 (C:\src\llvm-build\bin\clang-cl.exe+0x1f25e50) #5 0x0000000141861f31 (C:\src\llvm-build\bin\clang-cl.exe+0x1f31f31) #6 0x000000014186186d (C:\src\llvm-build\bin\clang-cl.exe+0x1f3186d) #7 0x000000014180e696 (C:\src\llvm-build\bin\clang-cl.exe+0x1ede696) #8 0x0000000141813759 (C:\src\llvm-build\bin\clang-cl.exe+0x1ee3759) #9 0x00000001414e3047 (C:\src\llvm-build\bin\clang-cl.exe+0x1bb3047) #10 0x00000001412ea695 (C:\src\llvm-build\bin\clang-cl.exe+0x19ba695) #11 0x00000001412e944d (C:\src\llvm-build\bin\clang-cl.exe+0x19b944d) #12 0x00000001412f7401 (C:\src\llvm-build\bin\clang-cl.exe+0x19c7401) #13 0x00000001412e9c58 (C:\src\llvm-build\bin\clang-cl.exe+0x19b9c58) #14 0x00000001413340bb (C:\src\llvm-build\bin\clang-cl.exe+0x1a040bb) #15 0x0000000141333901 (C:\src\llvm-build\bin\clang-cl.exe+0x1a03901) #16 0x000000014132ef0d (C:\src\llvm-build\bin\clang-cl.exe+0x19fef0d) (note: both error, and crash) -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs