[Bug c++/87519] New: -Wsign-conversion erroneosly triggered when converting to auto-deduced interger type

2018-10-04 Thread fefer.ivan at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fefer.ivan at gmail dot com Target Milestone: --- Created attachment 44785 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44785&action=edit Minimal sour

[Bug c++/87519] -Wsign-conversion erroneosly triggered when converting to auto-deduced interger type

2018-10-04 Thread fefer.ivan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 --- Comment #1 from Ivan Fefer --- Created attachment 44786 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44786&action=edit Full stderr of compiler

[Bug c++/87519] -Wsign-conversion erroneosly triggered when converting to auto-deduced interger type

2018-10-04 Thread fefer.ivan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 --- Comment #2 from Ivan Fefer --- Created attachment 44787 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44787&action=edit Code after preprocessing

[Bug c++/87519] -Wsign-conversion erroneosly triggered when converting to auto-deduced interger type

2018-10-04 Thread fefer.ivan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 --- Comment #3 from Ivan Fefer --- Created attachment 44788 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44788&action=edit Temp compiler file

[Bug c++/87519] -Wsign-conversion erroneosly triggered when converting to auto-deduced interger type

2018-10-04 Thread fefer.ivan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 --- Comment #4 from Ivan Fefer --- Sorry, hit the Submit button too early by accident. Source code and compiler output are attached. Bug is -Wsign-conversion warning triggerring: bug.cpp:5:11: error: conversion to ‘long unsigned int’ from ‘int

[Bug c++/87519] -Wsign-conversion erroneosly triggered when converting to auto-deduced interger type

2018-10-04 Thread fefer.ivan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 --- Comment #5 from Ivan Fefer --- Same code at Godbolt.org: https://gcc.godbolt.org/

[Bug c++/87519] -Wsign-conversion erroneosly triggered when converting to auto-deduced interger type

2018-10-04 Thread fefer.ivan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 --- Comment #6 from Ivan Fefer --- https://gcc.godbolt.org/z/hOpMyc