This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/67155] Linking of complex constexpr static class member failing across files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]