X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=m+/Qb8L7UVlvVeQ9
	DOUhIX64S3HVqhBdvFq/pYx3artH5GqhH5hfbGLW1YqrMXyzd88WPElAWzWK5sZZ
	9Y3dVcbMGDMmTISERaPbQYboGHEol+sRX2e8TaXoxrHLyzXEGQXzZAvcVY2Rs3lj
	PyBCS8uVUq3f6ERcRHqTY9QeK0I=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=PPzysxtTYt4FBxDxi35Oar
	KtmFU=; b=JkPMofhGA6+VeVR0HgOS4szxS2jjIFuXjw3NQzKkUMvcEAb9nr6opA
	Vs4YV6u8a6G2Mp6bLiYNX5PeIC39fDjRR/K5+zbikwkNj8TDS62Rf16wFhI+lMeo
	UygEg4McIxw0aBKW56eL9mVzyYyEQ6dK9RY/I1RqchLCWYqvdDLNA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=
X-HELO: mail-qt0-f170.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-transfer-encoding;        bh=NeSiwmCeBdek8ydtrRvzwREDioHmwRNaPQBD/1k+k1Y=;        b=c0bcuxKehoNSTDDCq4awKUECAcSGCS8UNXXxjDB98BF4H65vcdRYIQECkytKJbb5YD         UIidixTiturrKJFeGIbnHkU1oAeGQZa/TUcrRgyeQqchKvpyKt4naIAVhRkyqR5YO2Fj         sJvJVdMc+U+XOIrpN6+OkGXP+PA2nvt++Mkng+JMvgX2jK1bj9YxIZvZ+RPTbnmAqeWD         hAAvr8NrQ1b48HIZSeDqMGLSrx592UlMaCmfwZfu9Y6tKzOGvQg0SvgK66gQDRo9yizA         JwieXyrf5umbqgh0WzW5MXcvcsOi2vKV+b0BukYQNf0EAElmF17dKOf8mDDbP21axk6P         MO0w==
X-Gm-Message-State: AKS2vOyVzyaJq8+SBFQ/aFkPOUmxl90/XxWXmO+7B5/oPm4kBJ/fciqn	WUKZfyVS5q9Q0x6mNkk=
X-Received: by 10.200.51.125 with SMTP id u58mr69268167qta.12.1499437682487;        Fri, 07 Jul 2017 07:28:02 -0700 (PDT)
Subject: Re: g++ std::map initializing raises segmentation fault.
To: cygwin@cygwin.com
References: <fbd18c39-f4bb-6660-d881-3ea2db19e898@gmail.com> <5aeb55b6-1c71-bf68-3f2c-31f55bba438e@gmail.com> <20170707.230903.2208998970191971739.trueroad@trueroad.jp> <CAL_02JDCzwkbqZOPnq+95662FqcnRm65z28jZNJ89Z-TyWw9eA@mail.gmail.com>
From: Marco Atzeri <marco.atzeri@gmail.com>
Message-ID: <98ee2e33-2c7c-a4b3-d06d-f58a040c1619@gmail.com>
Date: Fri, 7 Jul 2017 16:27:51 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <CAL_02JDCzwkbqZOPnq+95662FqcnRm65z28jZNJ89Z-TyWw9eA@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

On 07/07/2017 16:21, Ivan Gagis wrote:
> I installed g++ 6.3.0-2 and still can reproduce the segfault :(.
>
> Br,
> Ivan
>

It seems due to the -std=c++11 restriction

$ g++ foo.cc

$ ./a.exe
Hello World!

$ g++ -std=c++11 foo.cc

$ ./a.exe
Segmentation fault (core dumped)


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

