| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
| List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
| List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| X-Authentication-Warning: | hp2.xraylith.wisc.edu: khan owned process doing -bs |
| Date: | Sat, 29 Jan 2000 13:36:56 -0600 (CST) |
| From: | Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> |
| Reply-To: | Mumit Khan <khan AT NanoTech DOT Wisc DOT EDU> |
| To: | Kris Thielemans <kris DOT thielemans AT csc DOT mrc DOT ac DOT uk> |
| cc: | Gnuwin <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | Re: problems with g++ 2.95.2 and w32api 0.1.5 |
| In-Reply-To: | <000e01bf698d$fbb4d260$1d4bb392@petnt1.rpms.ac.uk> |
| Message-ID: | <Pine.HPP.3.96.1000129133420.25597K-100000@hp2.xraylith.wisc.edu> |
| MIME-Version: | 1.0 |
On Fri, 28 Jan 2000, Kris Thielemans wrote:
> The following 'do nothing' programme crashes when including <windows.h>
> (using Norlander's w32api 0.1.5).
>
> #include <string>
> #include <vector>
>
> class A
> {
> vector<int> v;
>
> A(vector<int>& vv) :
> v(vv)
> {}
> };
>
> #include <windows.h>
>
> main()
> {
> string a = "aa";
> }
>
This is a bug the surfaced after some attribute handling changes in gcc
2.95 (wasn't there in egcs-1.1.x), and I just haven't been able to crack
it. If you want to know what's going on, see:
Linkname: (C++) parser bug in handling fn attributes
URL: http://gcc.gnu.org/ml/gcc-bugs/1999-11/msg00084.html
Contains a much simplified testcase that demonstrates the same bug you
found. This one is damned frustrating.
I have no fix for it currently, sorry.
As a workaround, try moving the windows.h before string.
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |