This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/67155] Linking of complex constexpr static class member failing across files
- From: "JamesMikeDuPont at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 08 Aug 2015 03:08:50 +0000
- Subject: [Bug c++/67155] Linking of complex constexpr static class member failing across files
- Auto-submitted: auto-generated
- References: <bug-67155-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67155
--- Comment #1 from James Michael DuPont <JamesMikeDuPont at googlemail dot com> ---
The compiler output :
g++ -std=gnu++11 test.cpp test.hpp
/tmp/cceBFmJM.o: In function `S::S()':
test.cpp:(.text+0x35): undefined reference to `S::u'
collect2: error: ld returned 1 exit status
Makefile:2: recipe for target 'test' failed
make: *** [test] Error 1