From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24786 invoked by alias); 2 Jun 2011 10:26:56 -0000 Received: (qmail 24777 invoked by uid 22791); 2 Jun 2011 10:26:54 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Jun 2011 10:26:40 +0000 From: "marc.glisse at normalesup dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/49266] New: [C++0x] Another incomplete type regression with noexcept X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marc.glisse at normalesup dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 02 Jun 2011 10:26:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00097.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: marc.glisse@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 #include template 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 Y; std::pair m; }; template < class Items_> struct Combinatorial_map : public Combinatorial_map_base< Combinatorial_map > { typedef int* Dart_handle; }; int main() { typedef Combinatorial_map Map2; Map2(); } $ c++ -std=gnu++0x -Wall -c Combinatorial_map_test.cpp Combinatorial_map_test.cpp: In instantiation of 'Cell_attribute >': /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::allocator > > >&, std::vector >, std::allocator > > >&&>::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::allocator > > >&, std::vector >, std::allocator > > >&&>' /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::allocator > > >&, std::vector >, std::allocator > > >&&>, std::__is_nt_assignable_impl >, std::allocator > > >&, std::vector >, std::allocator > > >&&> >' /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::allocator > > >&, std::vector >, std::allocator > > >&&>' /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::allocator > > >, 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::allocator > > > >' /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::allocator > > > >, std::is_nothrow_move_assignable >, std::allocator > > > > >' /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::allocator > > >, std::vector >, std::allocator > > > >' Combinatorial_map_test.cpp:15:20: instantiated from 'Combinatorial_map_base >' Combinatorial_map_test.cpp:19:8: instantiated from 'Combinatorial_map' 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'