delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-developers-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-developers-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin-developers/> |
List-Post: | <mailto:cygwin-developers AT cygwin DOT com> |
List-Help: | <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-developers-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin-developers AT cygwin DOT com |
Date: | Wed, 27 Nov 2002 18:57:59 -0500 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin-developers AT cygwin DOT com |
Subject: | Re: Is it a valid C++ structure initialization? |
Message-ID: | <20021127235758.GA21457@redhat.com> |
Reply-To: | cygwin-developers AT cygwin DOT com |
Mail-Followup-To: | cygwin-developers AT cygwin DOT com |
References: | <027401c294dd$65d31210$0201a8c0 AT sos> |
Mime-Version: | 1.0 |
In-Reply-To: | <027401c294dd$65d31210$0201a8c0@sos> |
User-Agent: | Mutt/1.5.1i |
On Mon, Nov 25, 2002 at 06:50:10PM -0500, Sergey Okhapkin wrote: >Here is a test program (wich seems to me incorrect): > >struct asd { > int a; > char b; >}; > >void f(int i, char c) >{ > struct asd qwe = { > a: i, > b: c > }; > >} > >The program compiles fine with gcc-3.2. Gcc 3.3 current snapshot reports: >test.cc: In function `void f(int, char)': >test.cc:11: error: too many initializers for `asd' Yes, they are incorrect. They are using gcc extensions which are no longer supported in g++ apparently. Even the C99 labelled initializers are not supported. So, we have to fix these. cgf
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |