1
Name:
corbet
2010-05-31 11:39
GCC begins move to C++
[Development] Posted May 31, 2010 13:53 UTC (Mon) by corbet
It's now official : the GCC compiler is moving to a C++ implementation. "I am pleased to report that the GCC Steering Committee and the FSF have approved the use of C++ in GCC itself. Of course, there's no reason for us to use C++ features just because we can. The goal is a better compiler for users, not a C++ code base for its own sake." The next step is the bashing out of a set of C++ coding standards limiting the set of C++ language features which can be used.
Full Story (comments: none)
40
Name:
Anonymous
2010-06-02 4:38
>>39
$ clang++ test.cpp
In file included from test.cpp:1:
/usr/include/c++/4.4.3/iostream:38:10: fatal error: 'bits/c++config.h' file not found
#include <bits/c++config.h>
^
0 libLLVM-2.7.so 0x0000003595bc8e4f
1 libLLVM-2.7.so 0x0000003595bc94a5
2 libpthread.so.0 0x00007fe83f2070f0
3 clang 0x000000000086576d
4 clang 0x0000000000865bb3
5 clang 0x00000000006c98b1
6 clang 0x00000000006cab92
7 clang 0x00000000006cb675
8 clang 0x00000000006fdce1
9 clang 0x00000000006ffbaa
10 clang 0x00000000008fe8ae
11 clang 0x00000000008d5431
12 clang 0x00000000008ebf74
13 clang 0x00000000008eddc5
14 clang 0x00000000008ee92f
15 clang 0x00000000008e23b1
16 clang 0x00000000009064ba
17 clang 0x000000000090702b
18 clang 0x00000000009072fb
19 clang 0x00000000008e5b5f
20 clang 0x00000000008d959f
21 clang 0x00000000008d98ba
22 clang 0x00000000005e3c3b
23 clang 0x000000000041f2e9
24 clang 0x00000000004134ea
25 clang 0x00000000004167bb main + 1771
26 libc.so.6 0x00007fe83ea15b1d __libc_start_main + 253
27 clang 0x00000000004119b9
Stack dump:
0. Program arguments: /usr/bin/clang -cc1 -triple x86_64-unknown-linux-gnu -S -disable-free -disable-llvm-verifier -main-file-name test.cpp -mrelocation-model static -mdisable-fp-elim -mconstructor-aliases -munwind-tables -target-cpu x86-64 -resource-dir /usr/lib/clang/1.1 -fmessage-length 210 -fexceptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/cc-wDih0Q.s -x c++ test.cpp
1. /usr/include/c++/4.4.3/ostream:380:7: current parser token 'basic_ostream'
2. /usr/include/c++/4.4.3/ostream:376:5: parsing struct/union/class body 'basic_ostream::'
clang: error: compiler command failed due to signal 11 (use -v to see invocation)
$ cat test.cpp
#include <iostream>
int main()
{
std::cout << "Oh God I am not good with Sepples.\n";
return 0;
}
2010 will be the year of Clang!