https://bugs.llvm.org/show_bug.cgi?id=41093
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
This is a GCC bug. This code:
constexpr void table_map_one_helper(const Table& t, OutTable& out_table, Op op)
{
constexpr auto multi_s = t.math.template as_multi_s<idx>();
//...
is ill-formed, because the reference 't' cannot be used in a constant
expression (naming a reference resolves it to the referenced object, which is
unknown here).
You can fix your code by changing that to
constexpr auto multi_s = decltype(t.math)::template as_multi_s<idx>();
https://gcc.godbolt.org/z/MBb1-9
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs