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
This commit is contained in:
Jason Merrill 2002-01-23 07:49:48 -05:00
parent d9e916d988
commit 152d6a868d
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
// 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;
}