Bug#786934: Compile error from clang-3.5 in C++. Include std-header in user definition namespace.
Narusawa Yu
narusawayu at gmail.com
Tue May 26 22:52:17 UTC 2015
Package: clang-3.5
Version: 1:3.5~svn212963-1~exp1
Severity: minor
Hi. I caught bug from clang-3.5.
C++ source code.
```cpp
#include <iostream>
namespace NameSpace {
#include <vector>
}
int main()
{
return 0;
}
```
Compile.
```bash
$ clang++ -std=c++1z test.cpp
```
Result. This full log is 'build.log' in archive file.
```bash
...
clang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang: note: diagnostic msg: /tmp/test-95ce5b.cpp
clang: note: diagnostic msg: /tmp/test-95ce5b.sh
clang: note: diagnostic msg:
********************
```
Environs.
```bash
$ uname -a
Linux deb 3.2.0-4-486 #1 Debian 3.2.68-1+deb7u1 i686 GNU/Linux
$ which clang++
/usr/bin/clang++
$ dpkg --search `which clang++`
clang-3.5: /usr/bin/clang++
$ `which clang++` --version
Debian clang version 3.5.0-1~exp1 (trunk) (based on LLVM 3.5.0)
Target: i386-pc-linux-gnu
Thread model: posix
```
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: files.tar.bz2
Type: application/x-bzip2
Size: 242339 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-llvm-team/attachments/20150527/b8233514/attachment-0001.bin>
More information about the Pkg-llvm-team
mailing list