Skip to content

Instantly share code, notes, and snippets.

@ryoqun
Created May 23, 2012 14:08
Show Gist options
  • Save ryoqun/2775422 to your computer and use it in GitHub Desktop.
Save ryoqun/2775422 to your computer and use it in GitHub Desktop.
ryoqun@mizuna:~/rubinius-with-clang$ clang++ -c /tmp/name.cpp
/tmp/name.cpp:3:11: error: redefinition of 'thread' as different kind of symbol
namespace thread {
^
/tmp/name.cpp:1:8: note: previous definition is here
struct thread;
^
1 error generated.
ryoqun@mizuna:~/rubinius-with-clang$ g++ -c /tmp/name.cpp
/tmp/name.cpp:3:18: error: ‘namespace thread { }’ redeclared as different kind of symbol
/tmp/name.cpp:1:8: error: previous declaration of ‘struct thread’
ryoqun@mizuna:~/rubinius-with-clang$ cat /tmp/name.cpp
struct thread;
namespace thread {
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment