http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49266
Summary: [C++0x] Another incomplete type regression with noexcept Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: marc.gli...@normalesup.org This is another case of noexcept specifications causing instanciations and resulting in incomplete types (see PR c++/49107 for the first one). Reporting against C++ instead of libstdc++ like 49107. #include <utility> #include <vector> template <class Refs> class Cell_attribute { typedef typename Refs::Dart_handle Dart_handle; }; template < class Refs> struct Combinatorial_map_base { typedef Cell_attribute< Refs> X; typedef std::vector<X> Y; std::pair<Y,Y> m; }; template < class Items_> struct Combinatorial_map : public Combinatorial_map_base< Combinatorial_map<Items_> > { typedef int* Dart_handle; }; int main() { typedef Combinatorial_map<void > Map2; Map2(); } $ c++ -std=gnu++0x -Wall -c Combinatorial_map_test.cpp Combinatorial_map_test.cpp: In instantiation of 'Cell_attribute<Combinatorial_map<void> >': /tmp/gcc/inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/type_traits:1013:68: instantiated from 'constexpr const bool std::__is_assignable_helper<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&, std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&&>::value' /tmp/gcc/inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/type_traits:1018:12: instantiated from 'std::is_assignable<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&, std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&&>' /tmp/gcc/inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/type_traits:89:12: instantiated from 'std::__and_<std::is_assignable<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&, std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&&>, std::__is_nt_assignable_impl<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&, std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&&> >' /tmp/gcc/inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/type_traits:1066:12: instantiated from 'std::is_nothrow_assignable<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&, std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >&&>' /tmp/gcc/inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/type_traits:1097:12: instantiated from 'std::__is_nt_move_assignable_impl<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >, false>' /tmp/gcc/inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/type_traits:1103:12: instantiated from 'std::is_nothrow_move_assignable<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > > >' /tmp/gcc/inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/type_traits:89:12: instantiated from 'std::__and_<std::is_nothrow_move_assignable<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > > >, std::is_nothrow_move_assignable<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > > > >' /tmp/gcc/inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/bits/stl_pair.h:167:7: instantiated from 'std::pair<std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > >, std::vector<Cell_attribute<Combinatorial_map<void> >, std::allocator<Cell_attribute<Combinatorial_map<void> > > > >' Combinatorial_map_test.cpp:15:20: instantiated from 'Combinatorial_map_base<Combinatorial_map<void> >' Combinatorial_map_test.cpp:19:8: instantiated from 'Combinatorial_map<void>' Combinatorial_map_test.cpp:28:10: instantiated from here Combinatorial_map_test.cpp:7:50: error: no type named 'Dart_handle' in 'struct Combinatorial_map<void>'