<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 crashed while parsing __visibility__ attribute under arm-linux-gnueabihf"
href="http://llvm.org/bugs/show_bug.cgi?id=19781">19781</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Clang crashed while parsing __visibility__ attribute under arm-linux-gnueabihf
</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>All
</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>stpworld@narod.ru
</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>Bug has been discovered while compiling libcxx, I got next bunch of errors:
In file included from /home/ubuntu/projects/libcxx/include/sstream:174:
In file included from /home/ubuntu/projects/libcxx/include/ostream:131:
In file included from /home/ubuntu/projects/libcxx/include/ios:216:
In file included from /home/ubuntu/projects/libcxx/include/__locale:18:
In file included from /home/ubuntu/projects/libcxx/include/mutex:176:
In file included from /home/ubuntu/projects/libcxx/include/__mutex_base:16:
/home/ubuntu/projects/libcxx/include/system_error:396:33: error: '__do_message'
redeclared with
'public' access
friend class _LIBCPP_HIDDEN __do_message;
^
Invalid access specifier!
UNREACHABLE executed at
/home/ubuntu/projects/toolchain/llvm.src/tools/clang/lib/AST/DeclCXX.cpp:2137!
Stack dump:
0. Program arguments:
/home/ubuntu/projects/toolchain/llvm.obj/Release+Asserts/bin/clang -cc1 -triple
armv7-unknown-linux-gnueabihf -emit-obj -mrelax-all -disable-free
-main-file-name pairs.by.type.pass.cpp -mrelocation-model static
-mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-fuse-init-array -target-cpu cortex-a8 -target-abi aapcs-linux -mfloat-abi hard
-target-linker-version 2.24 -resource-dir
/home/ubuntu/projects/toolchain/llvm.obj/Release+Asserts/bin/../lib/clang/3.5.0
-I /home/ubuntu/projects/libcxx/test/support -I
/home/ubuntu/projects/libcxx/include -internal-isystem /usr/local/include
-internal-isystem
/home/ubuntu/projects/toolchain/llvm.obj/Release+Asserts/bin/../lib/clang/3.5.0/include
-internal-externc-isystem /usr/include/arm-linux-gnueabihf
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-std=c++11 -fdeprecated-macro -fdebug-compilation-dir
/home/ubuntu/projects/libcxx/test/utilities/utility/pairs/pair.astuple
-ferror-limit 19 -fmessage-length 95 -mstackrealign -fno-signed-char
-fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o
/tmp/pairs-b28fc3.o -x c++ pairs.by.type.pass.cpp
1. /home/ubuntu/projects/libcxx/include/system_error:396:45: current
parser token ';'
2. /home/ubuntu/projects/libcxx/include/system_error:231:1
<Spelling=/home/ubuntu/projects/libcxx/include/__config:346:37>: parsing
namespace 'std'
3. /home/ubuntu/projects/libcxx/include/system_error:231:1
<Spelling=/home/ubuntu/projects/libcxx/include/__config:346:59>: parsing
namespace '__1'
4. /home/ubuntu/projects/libcxx/include/system_error:365:1: parsing
struct/union/class body 'error_category'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.5.0 (trunk 208775) (llvm/trunk 208774)
Target: armv7l-unknown-linux-gnueabihf
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to
<a href="http://llvm.org/bugs/">http://llvm.org/bugs/</a> and include the crash backtrace, preprocessed source, and
associated run script.
clang: note: diagnostic msg: Error generating preprocessed source(s).
/home/ubuntu/projects/libcxx/test/utilities/utility/pairs/pair.astuple/pairs.by.type.pass.cpp
failed to compile
Compile line was: clang++ -std=c++11 -stdlib=libc++
-I/home/ubuntu/projects/libcxx/test/support
-I/home/ubuntu/projects/libcxx/include -L/home/ubuntu/projects/libcxx.build/lib
-L/home/ubuntu/projects/libcxxabi/lib -lc++abi <everything-that-uses
__mutex_base>.cpp</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>