[Bug c++/107138] [12 regression] std::variant triggers false-positive 'may be used uninitialized' warning

2022-10-03 Thread carsten.andrich at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107138 --- Comment #2 from carsten.andrich at gmx dot de --- (In reply to Marek Polacek from comment #1) > I see the warning even without -fsanitize=undefined. Yes. Just used -fsanitize=undefined as per the bug writing guidelines. What I forgot to

[Bug c++/107138] New: [12 regression] std::variant triggers false-positive 'may be used uninitialized' warning

2022-10-03 Thread carsten.andrich at gmx dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107138 Bug ID: 107138 Summary: [12 regression] std::variant triggers false-positive 'may be used uninitialized' warning Product: gcc Version: 12.2.0