[Bug c++/95029] Compile error when using constant variable instead of literal

2020-05-09 Thread maxi.matthe at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95029 --- Comment #2 from Maximilian Matthe --- Unfortunately, this seems to be a hard-to-spot case of the most vexing parse (just tried with clang, whose warning pointed me into that direction). https://www.fluentcpp.com/2018/01/30/most-vexing-parse

[Bug c++/95029] Compile error when using constant variable instead of literal

2020-05-09 Thread maxi.matthe at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95029 --- Comment #1 from Maximilian Matthe --- Created attachment 48495 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48495&action=edit The corresponding .ii-file

[Bug c++/95029] New: Compile error when using constant variable instead of literal

2020-05-09 Thread maxi.matthe at googlemail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: maxi.matthe at googlemail dot com Target Milestone: --- Created attachment 48494 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48494&action=edit Original source file trigger