From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23523 invoked by alias); 22 Jul 2002 00:26:02 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 23506 invoked by uid 71); 22 Jul 2002 00:26:01 -0000 Date: Sun, 21 Jul 2002 17:26:00 -0000 Message-ID: <20020722002601.23505.qmail@sources.redhat.com> To: gdr@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Phil Edwards Subject: Re: c++/7368: std::vector Reply-To: Phil Edwards X-SW-Source: 2002-07/txt/msg00597.txt.bz2 List-Id: The following reply was made to PR c++/7368; it has been noted by GNATS. From: Phil Edwards To: vincent.lascaux@ifrance.com Cc: gcc-gnats@gcc.gnu.org Subject: Re: c++/7368: std::vector Date: Sun, 21 Jul 2002 20:18:44 -0400 On Sun, Jul 21, 2002 at 05:17:19PM -0000, vincent.lascaux@ifrance.com wrote: > > #include > int main { std::vector Foo;} Gabriel is correct; this is incorrect code. Apart from the missing ()'s after main, which I assume was just a typo in the bug report, you are instantiating std::vector with a type that does not meet the requirements. In particular, it cannot be copied or assigned to. If you configure with --enable-concept-checks, or compile with -D_GLIBCPP_CONCEPT_CHECKS, you will see additional errors because of the unmet requirements. Phil -- If ye love wealth greater than liberty, the tranquility of servitude greater than the animating contest for freedom, go home and leave us in peace. We seek not your counsel, nor your arms. Crouch down and lick the hand that feeds you; and may posterity forget that ye were our countrymen. - Samuel Adams