[Bug c++/42346] New: darwin instantiation oddity
bkoz at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Dec 10 08:16:00 GMT 2009
The attached pre-processed file compiles fine on i686/x86_64 linux, but not on
darwin. Compiler sources are the same for both, 20091206 ish.
In addition, this passes on Darwin with -O1, but not with -O2.
Darwin error:
ames:testsuite benjamin$ ./compile-map.sh
In file included from
/Users/benjamin/bld/gcc/x86_64-apple-darwin10.2.0/libstdc++-v3/include/bits/move.h:38:0,
from
/Users/benjamin/bld/gcc/x86_64-apple-darwin10.2.0/libstdc++-v3/include/bits/stl_pair.h:60,
from
/Users/benjamin/bld/gcc/x86_64-apple-darwin10.2.0/libstdc++-v3/include/bits/stl_algobase.h:66,
from
/Users/benjamin/bld/gcc/x86_64-apple-darwin10.2.0/libstdc++-v3/include/bits/stl_tree.h:62,
from
/Users/benjamin/bld/gcc/x86_64-apple-darwin10.2.0/libstdc++-v3/include/map:60,
from
/Users/benjamin/src/gcc/libstdc++-v3/testsuite/23_containers/map/requirements/exception/basic.cc:22:
/Users/benjamin/bld/gcc/x86_64-apple-darwin10.2.0/libstdc++-v3/include/type_traits:
In instantiation of 'const bool
std::__is_convertible_helper<__gnu_cxx::throw_value_limit,
__gnu_cxx::throw_value_limit, false>::__value':
/Users/benjamin/bld/gcc/x86_64-apple-darwin10.2.0/libstdc++-v3/include/type_traits:273:5:
instantiated from 'std::is_convertible<__gnu_cxx::throw_value_limit,
__gnu_cxx::throw_value_limit>'
/Users/benjamin/src/gcc/libstdc++-v3/testsuite/util/exception/safety.h:97:31:
instantiated from here
/Users/benjamin/bld/gcc/x86_64-apple-darwin10.2.0/libstdc++-v3/include/type_traits:263:71:
error: no matching function for call to
'__gnu_cxx::throw_value_limit::throw_value_limit(__gnu_cxx::throw_value_limit)'
compilation terminated due to -Wfatal-errors.
This error doesn't make sense. There's a copy ctor that's visible. Clearly
there is something amiss!
--
Summary: darwin instantiation oddity
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bkoz at gcc dot gnu dot org
GCC build triplet: x86_64-apple-darwin10.2.0
GCC host triplet: x86_64-apple-darwin10.2.0
GCC target triplet: x86_64-apple-darwin10.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42346
More information about the Gcc-bugs
mailing list