Skip to content
Snippets Groups Projects
Commit 152d6a86 authored by Jason Merrill's avatar Jason Merrill
Browse files

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
No related branches found
No related tags found
No related merge requests found
// 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;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment