http://llvm.org/bugs/show_bug.cgi?id=15528
Bug ID: 15528
Summary: Incomprehensible errors for namespaces with missing
braces
Product: clang
Version: trunk
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Created attachment 10184
--> http://llvm.org/bugs/attachment.cgi?id=10184&action=edit
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; }
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs