From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26117 invoked by alias); 18 Aug 2004 12:59:24 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 26110 invoked by uid 48); 18 Aug 2004 12:59:23 -0000 Date: Wed, 18 Aug 2004 12:59:00 -0000 From: "claus dot tondering at teknologisk dot dk" To: gcc-bugs@gcc.gnu.org Message-ID: <20040818125920.17082.claus.tondering@teknologisk.dk> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/17082] New: Erroneous error message when using arrays in double constructor X-Bugzilla-Reason: CC X-SW-Source: 2004-08/txt/msg01797.txt.bz2 List-Id: The following code cannot be compiled with g++. g++ prints this error message for the the declartion of s1: error: syntax error before `,' token Switching the arguments arr[0] and 3 causes the error message to go away. Error seen on a Cygwin system running g++ version 3.3.1 and on a GNU/Linux system running g++ version 3.2.2. ----------------------------------------------------------- class A { public: A(int i, int j); }; class B { public: B(A n); }; int arr[10]; void func() { B s1( A(arr[0], 3) ); } -- Summary: Erroneous error message when using arrays in double constructor Product: gcc Version: 3.3.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: claus dot tondering at teknologisk dot dk CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17082