<html>
    <head>
      <base href="http://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Source range of explicitly defaulted constructor not recorded"
   href="http://llvm.org/bugs/show_bug.cgi?id=20744">20744</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Source range of explicitly defaulted constructor not recorded
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>C++11
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jpienaar@google.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvmbugs@cs.uiuc.edu
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The complete source range for an explicitly defaulted constructor is not
captured.  The AST dump of

struct A {                                                                      
  constexpr A() = default;
};

is

TranslationUnitDecl 0x64a66b0 <<invalid sloc>> <invalid sloc>
|-TypedefDecl 0x64a6bf0 <<invalid sloc>> <invalid sloc> implicit __int128_t
'__int128'
|-TypedefDecl 0x64a6c50 <<invalid sloc>> <invalid sloc> implicit __uint128_t
'unsigned __int128'
|-TypedefDecl 0x64a7010 <<invalid sloc>> <invalid sloc> implicit
__builtin_va_list '__va_list_tag [1]'
`-CXXRecordDecl 0x64a7060 </usr/local/google/home/jpienaar/min.cpp:1:1,
line:3:1> line:1:8 struct A definition
  |-CXXRecordDecl 0x64a7170 <col:1, col:8> col:8 implicit struct A
  `-CXXConstructorDecl 0x64a72a0 <line:2:3, col:15> col:13 A 'void (void)'
noexcept-unevaluated 0x64a72a0

It appears as if the source range of the constructor only reports "constexpr
A()"</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>