<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 --- - Incomprehensible errors for namespaces with missing braces"
href="http://llvm.org/bugs/show_bug.cgi?id=15528">15528</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Incomprehensible errors for namespaces with missing braces
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Frontend
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>gonzalobg88@gmail.com
</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=10184" name="attach_10184" title="Minimal example">attachment 10184</a> <a href="attachment.cgi?id=10184&action=edit" title="Minimal example">[details]</a></span>
Minimal example
Missing braces in namespace declaration errors are currently being displayed
after a long chain of "non-errors". For namespaces in header files the
situation is even worse: arriving at the -ferror-limit is very easy. See
minimal example below.
3 Files: a.h, b.h, main.cpp (dependency on boost/any)
FILE: a.h:
#ifndef A_H_
#define A_H_
#include <iostream>
namespace test {
// } // uncomment this line to fix the error
#endif
FILE: b.h:
#ifndef B_H_
#define B_H_
#include <boost/any.hpp>
// uncomment this line to see how the "real error" is displayed:
#include <unordered_map>
#endif
FILE: main.cpp:
#include "a.h"
#include "b.h"
int main() { return 0; }</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>