https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97186
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2020-09-24 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW CC| |marxin at gcc dot gnu.org, | |nathan at gcc dot gnu.org --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Started to ICE with r11-3192-ge9fdb9a73249f95f, before that it was rejected: g++-10 pr97186.C -c pr97186.C: In instantiation of ‘void hk() [with GG = int]’: pr97186.C:9:8: required from ‘static void no<GG>::tg() [with GG = int]’ pr97186.C:16:18: required from here pr97186.C:7:5: error: conversion from ‘void (*)()’ to ‘bool’ in a converted constant expression 7 | hk () noexcept (tg); | ^~ pr97186.C:7:5: error: could not convert ‘no<int>::tg’ from ‘void()’ to ‘bool’