Created
May 23, 2012 14:08
-
-
Save ryoqun/2775422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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