[GCC] C++ program calling std::getline() crashes with certain compilation flags
TANNHAUSER Falk
Falk.Tannhauser@crf.canon.fr
Fri Jul 7 11:31:00 GMT 2017
> Bonus points if you can reduce this testcase further, see
> https://gcc.gnu.org/wiki/A_guide_to_testcase_reduction
> for how to take the preprocessed output and automatically
> reduce it to a much smaller file.
I attach the output of
```
creduce checki.sh test_getline.i
```
where checki.sh is attached too and test_getline.i was obtained trough
```
g++ -w -std=c++98 -O0 -E -P test_getline.cxx > test_getline.i
```
Note that passing -O1 instead of -O0 doesn't change the pre-processed output,
while replacing -std=c++98 by -std=gnu++98 triggers substantial changes.
Falk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_getline.i
Type: application/octet-stream
Size: 928 bytes
Desc: test_getline.i
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170707/b0982e9d/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: checki.sh
Type: application/octet-stream
Size: 245 bytes
Desc: checki.sh
URL: <http://cygwin.com/pipermail/cygwin/attachments/20170707/b0982e9d/attachment-0001.obj>
-------------- next part --------------
--
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
More information about the Cygwin
mailing list