re PR c++/92365 (ice unexpected expression ‘int16_t()’ of kind cast_expr)
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Sat, 23 Nov 2019 06:33:59 +0000 (06:33 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Sat, 23 Nov 2019 06:33:59 +0000 (06:33 +0000)
commit41149acaff5ccb046ebf8ac7ae6eadb147f6f6b8
tree62a7fdefd6834956d800987e955be3c71cadce9b
parentf34a05b0d3499567b24273739c7cca41c115aa7b
re PR c++/92365 (ice unexpected expression ‘int16_t()’ of kind cast_expr)

PR c++/92365

2019-11-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/92365
        * name-lookup.c (check_local_shadow): Use can_convert_arg
        instead of can_convert.

testsuite:
2019-11-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR c++/92365
        * g++.dg/pr92365.C: New test.

From-SVN: r278639
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr92365.C [new file with mode: 0644]