[llvm-bugs] [Bug 33723] Invalid compiler error: bug.cpp:38:88: error: 'Header' does not refer to a value
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 11 22:48:58 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=33723
zosrothko at orange.fr <zosrothko at orange.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|INVALID |---
Status|RESOLVED |REOPENED
--- Comment #7 from zosrothko at orange.fr <zosrothko at orange.fr> ---
Sorry for this mess again, but the real issue is the following
Compiling with: clang++-3.6 -c bug.cpp // compile is OK
Compiling with: clang++-3.6 -c -stdlib=libc++ bug.cpp // compile is KO
Thus, it seems that using -stdlib=libc++ is breaking the default alignment
rules. Do you have any idea where this problem could come?
fandre at ubuntu-trusty-64:~/clang$ clang++-3.6 -c bug.cpp
fandre at ubuntu-trusty-64:~/clang$ clang++-3.6 -c -stdlib=libc++ bug.cpp
bug.cpp:56:88: error: 'Header' does not refer to a value
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, code) == 0x01)>)> poco_static_assert_typedef_53 __att...
^
bug.cpp:45:9: note: declared here
struct Header
^
bug.cpp:56:96: error: use of undeclared identifier 'code'
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, code) == 0x01)>)> poco_static_assert_typedef_53 __att...
^
bug.cpp:56:111: error: type name requires a specifier or qualifier
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, code) == 0x01)>)> poco_static_assert_typedef_53 __att...
^
bug.cpp:57:88: error: 'Header' does not refer to a value
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, checksum) == 0x02)>)> poco_static_assert_typedef_54 _...
^
bug.cpp:45:9: note: declared here
struct Header
^
bug.cpp:57:96: error: use of undeclared identifier 'checksum'
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, checksum) == 0x02)>)> poco_static_assert_typedef_54 _...
^
bug.cpp:57:115: error: type name requires a specifier or qualifier
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, checksum) == 0x02)>)> poco_static_assert_typedef_54 _...
^
bug.cpp:58:88: error: 'Header' does not refer to a value
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, id) == 0x04)>)> poco_static_assert_typedef_55 __attri...
^
bug.cpp:45:9: note: declared here
struct Header
^
bug.cpp:58:96: error: use of undeclared identifier 'id'
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, id) == 0x04)>)> poco_static_assert_typedef_55 __attri...
^
bug.cpp:58:109: error: type name requires a specifier or qualifier
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, id) == 0x04)>)> poco_static_assert_typedef_55 __attri...
^
bug.cpp:59:88: error: 'Header' does not refer to a value
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, seq) == 0x06)>)> poco_static_assert_typedef_56 __attr...
^
bug.cpp:45:9: note: declared here
struct Header
^
bug.cpp:59:96: error: use of undeclared identifier 'seq'
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, seq) == 0x06)>)> poco_static_assert_typedef_56 __attr...
^
bug.cpp:59:110: error: type name requires a specifier or qualifier
typedef poco_static_assert_test<sizeof(POCO_STATIC_ASSERTION_FAILURE<(bool)
(offsetof(Header, seq) == 0x06)>)> poco_static_assert_typedef_56 __attr...
^
12 errors generated.
fandre at ubuntu-trusty-64:~/clang$
--
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/20170712/04aed966/attachment.html>
More information about the llvm-bugs
mailing list