Just to drive this point home (and because I know someone else will say it if I don't):https://godbolt.org/z/hK99GvThe body of this function template is "syntax error syntax error" (with no semicolon at the end). MSVC accepts it happily, because MSVC doesn't parse templates.