Message ID | 20131104155017.GG30062@redhat.com |
---|---|
State | New |
Headers | show |
OK. Jason
--- gcc/c-family/c-common.c.mp 2013-11-04 16:44:48.674023654 +0100 +++ gcc/c-family/c-common.c 2013-11-04 16:45:52.632267904 +0100 @@ -9934,6 +9934,11 @@ invalid_indirection_error (location_t lo "invalid type argument of %<->%> (have %qT)", type); break; + case RO_ARROW_STAR: + error_at (loc, + "invalid type argument of %<->*%> (have %qT)", + type); + break; case RO_IMPLICIT_CONVERSION: error_at (loc, "invalid type argument of implicit conversion (have %qT)", --- gcc/testsuite/g++.dg/diagnostic/pr58979.C.mp2 2013-11-04 11:09:30.515553664 +0100 +++ gcc/testsuite/g++.dg/diagnostic/pr58979.C 2013-11-04 11:09:26.505538785 +0100 @@ -0,0 +1,4 @@ +// PR c++/58979 +// { dg-do compile } + +int i = 0->*0; // { dg-error "invalid type argument of" }