Commit 152d6a86 by Jason Merrill

re PR c++/5453 (Compiled program crash - inheritance/template/friend class problem)

        PR c++/5453
        * class.c (fixed_type_or_null): Fix thinko.

From-SVN: r49135
parent d9e916d9
// PR c++/5453: Test that we don't assume that the pointer target of a
// reference is non-null just because we know the reference isn't.
// { dg-do run }
struct V { };
struct A: virtual public V { };
A* ap;
A*& apr (ap);
int main ()
{
V* vp = apr;
}
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