Commit 6d7b8b35 by Jason Merrill

re PR c++/9336 (ICE in cp_line_of, at cp/error.c:2191)

        PR c++/9336
        * decl2.c (lookup_arg_dependent): Handle error_mark_node.

[[Split portion of a mixed commit.]]

From-SVN: r64322.2
parent 3033f0ed
// PR c++/9336
// Bug: The first, invalid call to f caused us to crash on the second,
// valid call.
namespace N {
template <class T> void f (T);
struct A;
}
struct B;
void g ()
{
B *bp;
N::A *ap;
f (bp); // { dg-error "undeclared" }
f (ap);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment