------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2005-03-11 16:27 ------- The diagnostic is missing due to calling lookup_name_real inside cp_parser_lookup_name without the LOOKUP_COMPLAIN flag. Too bad we cannot just add this flag because this will cause duplicate error messages. cp_parser_lookup_name are called multiple times during tentative parse.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20293