<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:zosrothko@orange.fr" title="zosrothko@orange.fr <zosrothko@orange.fr>"> <span class="fn">zosrothko@orange.fr</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Invalid compiler error: bug.cpp:38:88: error: 'Header' does not refer to a value"
   href="https://bugs.llvm.org/show_bug.cgi?id=33723">bug 33723</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>INVALID
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Invalid compiler error: bug.cpp:38:88: error: 'Header' does not refer to a value"
   href="https://bugs.llvm.org/show_bug.cgi?id=33723#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Invalid compiler error: bug.cpp:38:88: error: 'Header' does not refer to a value"
   href="https://bugs.llvm.org/show_bug.cgi?id=33723">bug 33723</a>
              from <span class="vcard"><a class="email" href="mailto:zosrothko@orange.fr" title="zosrothko@orange.fr <zosrothko@orange.fr>"> <span class="fn">zosrothko@orange.fr</span></a>
</span></b>
        <pre>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@ubuntu-trusty-64:~/clang$ clang++-3.6 -c bug.cpp
fandre@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@ubuntu-trusty-64:~/clang$</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>