public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42346]  New: darwin instantiation oddity
@ 2009-12-10  8:16 bkoz at gcc dot gnu dot org
  2009-12-10  8:17 ` [Bug c++/42346] " bkoz at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: bkoz at gcc dot gnu dot org @ 2009-12-10  8:16 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-03-11  3:47 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-10  8:16 [Bug c++/42346] New: darwin instantiation oddity bkoz at gcc dot gnu dot org
2009-12-10  8:17 ` [Bug c++/42346] " bkoz at gcc dot gnu dot org
2009-12-10  8:45 ` [Bug target/42346] darwin instantiation vs. optimization oddity pinskia at gcc dot gnu dot org
2009-12-10 16:06 ` [Bug c++/42346] " bkoz at gcc dot gnu dot org
2010-01-01 12:21 ` fxcoudert at gcc dot gnu dot org
2010-01-04 20:35 ` bkoz at gcc dot gnu dot org
2010-01-04 20:38 ` bkoz at gcc dot gnu dot org
2010-01-05  0:19 ` fxcoudert at gcc dot gnu dot org
2010-01-05  1:11 ` bkoz at gcc dot gnu dot org
2010-01-05 19:52 ` howarth at nitro dot med dot uc dot edu
2010-01-06  1:08 ` bkoz at gcc dot gnu dot org
2010-01-27 20:13 ` bkoz at gcc dot gnu dot org
2010-03-11  3:28 ` howarth at nitro dot med dot uc dot edu
2010-03-11  3:47 ` bkoz at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).