<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 --- - Clang detecting nonexistent error"
href="http://llvm.org/bugs/show_bug.cgi?id=16720">16720</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang detecting nonexistent error
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>3.3
</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++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>miranda.conrado@gmail.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>Created <span class=""><a href="attachment.cgi?id=10941" name="attach_10941" title="MWE">attachment 10941</a> <a href="attachment.cgi?id=10941&action=edit" title="MWE">[details]</a></span>
MWE
Using flag "-std=c++0x" with the MWE attached, I get the following error:
clang_report2.cpp:10:14: error: 'function_broken(int &)::<anonymous
struct>::method()::<anonymous struct>::v' is not a member of class '<anonymous
struct at clang_report2.cpp:8:3>'
return v;
^
clang_report2.cpp:3:18: note: in instantiation of member function
'function_broken(int &)::<anonymous struct>::method' requested here
value = object.method();
^
clang_report2.cpp:15:3: note: in instantiation of function template
specialization 'function<int, <anonymous struct at clang_report2.cpp:8:3> >'
requested here
function(value, object);
^
clang_report2.cpp:20:3: note: in instantiation of function template
specialization 'function_broken<int>' requested here
function_broken(value);
^
GCC 4.6.3, with the same flag, compiles correctly. The problem remains if the
struct is named.</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>