Author
anonymous
about 8 years ago
Language
Compiler
Options
Author
anonymous
about 8 years ago
$ prog.cc: In function 'int main()':
prog.cc:12:14: warning: unused variable 'b2' [-Wunused-variable]
Foo const& b2 = a; // should be error
^~
/tmp/ccdeFQ9o.o: In function `main':
prog.cc:(.text+0x10): undefined reference to `A::operator Foo&&() const'
prog.cc:(.text+0x1c): undefined reference to `A::operator Foo&&() const'
prog.cc:(.text+0x28): undefined reference to `A::operator Foo&&() const'
collect2: error: ld returned 1 exit status
Exit Code:
1