<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - cxxConstructExpr stopped matching templates"
href="https://bugs.llvm.org/show_bug.cgi?id=46287">46287</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>cxxConstructExpr stopped matching templates
</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>All
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>lukasza@chromium.org
</td>
</tr>
<tr>
<th>CC</th>
<td>htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org, neeilans@live.com, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>CLANG VERSION:
$ third_party/llvm-build/Release+Asserts/bin/clang++ --version
clang version 11.0.0 (<a href="https://github.com/llvm/llvm-project/">https://github.com/llvm/llvm-project/</a>
f7f1abdb8893af4a606ca1a8f5347a426e9c7f9e)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir:
/usr/local/google/home/lukasza/src/chromium4/src/third_party/llvm-build/Release+Asserts/bin
REPRO INPUT FILE:
template <typename T>
struct MyTemplate {
MyTemplate(int i) {}
};
void foo() {
MyTemplate<char> mt(123); // <- corresponds to the CXXConstructExpr node
below
}
REPRO INPUT FILE RENDERED AS AST:
$ third_party/llvm-build/Release+Asserts/bin/clang++ -Xclang -ast-dump
-std=c++14 tools/clang/rewrite_raw_ptr_fields/tests/affected-expr-original.cc
...
`-FunctionDecl 0x5b38300 <line:6:1, line:8:1> line:6:6 foo 'void ()'
`-CompoundStmt 0x5b65318 <col:12, line:8:1>
`-DeclStmt 0x5b65300 <line:7:3, col:27>
`-VarDecl 0x5b385b8 <col:3, col:26> col:20 mt
'MyTemplate<char>':'MyTemplate<char>' callinit
`-CXXConstructExpr 0x5b652d0 <col:20, col:26>
'MyTemplate<char>':'MyTemplate<char>' 'void (int)'
`-IntegerLiteral 0x5b38620 <col:23> 'int' 123
REPRO MATCHER:
cxxConstructExpr().bind("ctor")
EXPECTED BEHAVIOR: The cxxConstructExpr matcher matches all CXXConstructExpr
nodes from the AST
ACTUAL BEHAVIOR: The CXXConstructExpr above is not matched.</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>