#461 nullptr fails if HAVE_CONFIG_H is not set
Metadata
Property | Value |
---|---|
Reported by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Reported at | Nov 15, 2008 18:03 |
Type | Bug Report |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Last edited at | Feb 17, 2009 05:59 |
Closed by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Closed at | Feb 17, 2009 05:59 |
Closed in version | Unknown |
Resolution | Fixed |
Comment | Applied Christian's patch to release |
Description
when I run 'make clean all check DEFS=""' I get the following error:
g++ -std=c++0x -I. -I../.. -DFAIL -g -Wall -MT nullptr_test_fail-nullptr-test.o -MD -MP -MF .deps/nullptr_test_fail-nullptr-test.Tpo -c -o nullptr_test_fail-nullptr-test.o test -f 'nullptr-test.cc' || echo './'
nullptr-test.cc
nullptr-test.cc: In function ‘void basic_tests()’:
nullptr-test.cc:13: error: cannot convert ‘const nullptr_t’ to ‘int’ in initialization
nullptr-test.cc:22: error: no match for ‘operator==’ in ‘n2 == nullptr’
nullptr-test.cc:23: error: could not convert ‘nullptr’ to ‘bool’
nullptr-test.cc:26: error: no match for ‘operator=’ in ‘nullptr = 0’
../../dune/common/nullptr.hh:13: note: candidates are: nullptr_t& nullptr_t::operator=(const nullptr_t&)
nullptr-test.cc:27: error: invalid use of template type parameter ‘T’
nullptr-test.cc:13: warning: unused variable ‘n’