[Bug c++/42101] Linking failure with static constants and ternary inline function
dvander at alliedmods dot net
gcc-bugzilla@gcc.gnu.org
Thu Nov 19 01:44:00 GMT 2009
------- Comment #1 from dvander at alliedmods dot net 2009-11-19 01:44 -------
Created an attachment (id=19039)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19039&action=view)
reduced test case
This program doesn't link, though it should.
keima:src dvander$ g++ test.cpp -o test
test.cpp: In function Âint main()Â:
test.cpp:28: warning: format Â%d expects type ÂintÂ, but argument 2 has type
Âsize_tÂ
Undefined symbols:
"X::LENGTH_MASK", referenced from:
X::dependentLength() const in ccdhJ0JB.o
"X::DEPENDENT_LENGTH_MASK", referenced from:
X::dependentLength() const in ccdhJ0JB.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42101
More information about the Gcc-bugs
mailing list