Why this code is not valid?
auto f() {
if (true) return 0;
return {};
}
After parsing 0
, I think gcc should know that the return type of function f
was int
, but it still interpret the {}
as the initializer_list
when parsing the final return clause, why?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…