<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 --- - Macro expansion backtrace fails to mention a parameterless macro aliasing other macro's name"
href="http://llvm.org/bugs/show_bug.cgi?id=16799">16799</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Macro expansion backtrace fails to mention a parameterless macro aliasing other macro's name
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>griwes@griwes.info
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=10988" name="attach_10988" title="basic testcase">attachment 10988</a> <a href="attachment.cgi?id=10988&action=edit" title="basic testcase">[details]</a></span>
basic testcase
For the attached file, I get the following compiler output:
main.cpp:6:9: error: use of undeclared identifier 'baz'
foo(baz);
^
main.cpp:2:16: note: expanded from macro 'bar'
#define bar(a) a
^
1 error generated.
What I would actually expect would be something like this:
main.cpp:6:9: error: use of undeclared identifier 'baz'
foo(baz);
^
main.cpp:1:13: note: expanded from macro 'foo'
#define foo bar
^
main.cpp:2:16: note: expanded from macro 'bar'
#define bar(a) a
^
1 error generated.
The first note might need to look a bit differently, but not mentioning `foo`
in this expansion backtrack looks like a bug to me.</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>