OSDN Git Service

Fix PR c++/48574
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Apr 2011 15:09:26 +0000 (15:09 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 13 Apr 2011 15:09:26 +0000 (15:09 +0000)
commitca946d5f19553e058f6226122f1d4f40fac8be8b
treebfeedb41882a7eec47bc8d8ba31f40acaea8054e
parent9e049dc65520d61f4d56a622c94447be61dd4996
Fix PR c++/48574

gcc/cp/

* class.c (fixed_type_or_null): We cannot determine the dynamic
type of a reference variable if its initializer is dependent.

gcc/testsuite/

* g++.dg/template/dependent-expr7.C: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172375 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/dependent-expr7.C [new file with mode: 0644]