https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79308
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|ice-on-invalid-code |ice-on-valid-code --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to bjhend from comment #3) > (In reply to Martin Liška from comment #2) > > Confirmed, all releases I have ICE (4.5.0+). > > Hi Martin, > > thanks for confirmation. You also added the keyword ice-on-INvalid-code, but > I think the code is valid. > > The C++-11 standard, paragraph 14.7.3, clause 5 contains a similar example > (see nested template struct C) with a single element function. Additionally, > I cannot find anything in the text, saying that this code is invalid, but I > might be wrong in interpreting the standard. Sorry for such keyword, I'm not familiar with the standard. Let's switch that to valid and see what maintainers think about it.