view gcc/testsuite/g++.dg/spellcheck-pr78313.C @ 144:8f4e72ab4e11

fix segmentation fault caused by nothing next cur_op to end
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Sun, 23 Dec 2018 21:23:56 +0900
parents 04ced10e8804
children
line wrap: on
line source

// PR c++/78313 (see also PR c++/72774)
// { dg-do compile }

void baz ();
namespace A { void foo (); }
void bar ()
{
  using A::foo;
  0 ? static_cast<foo> (0) : baz; // { dg-bogus "did you mean" }
  // { dg-error "does not name a type" "" { target *-*-* } .-1 }
}