[Bug c++/20293] [3.4/4.0/4.1 regression] Wrong diagnostic for ambiguous access

lerdsuwa at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 11 16:27:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list