Web lists-archives.com

Re: [GCC] C++ program calling std::getline() crashes with certain compilation flags

On Thu, Jul 6, 2017 at 6:07 AM, TANNHAUSER Falk
<Falk.Tannhauser@xxxxxxxxxxxx> wrote:
> The following C++ program crashes when compiled with GCC (both 5.4 and 6.3) under Cygwin, when compiled with both an optimization level higher than -O0 (i.e. -O1, -O2 or -O3) and the C++ standard set to -std=c++nn (for any supported nn, i.e. 98, 03, 11, 14 or 17):

Bonus points if you can reduce this testcase further, see
for how to take the preprocessed output and automatically
reduce it to a much smaller file.

And by 'bonus points', I mean 'that's the first thing a
toolchain maintainer would probably do, so handing it
to them on a silver platter would help get their attention'.
- Dan

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