re PR c++/28284 (ICE with invalid static const variable)
authorSimon Martin <simartin@users.sourceforge.net>
Thu, 7 Sep 2006 17:25:05 +0000 (17:25 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 7 Sep 2006 17:25:05 +0000 (13:25 -0400)
commitd4a200d359866bc4d8dd1e9ef71cdbc69ab80b74
tree87b014cd8199a8e8bee4d8182624d173d1d5cee4
parentc387622634ae79b13f82c71add4d15e8489c93ca
re PR c++/28284 (ICE with invalid static const variable)

        PR c++/28284
        * pt.c (fold_non_dependent_expr): Make sure expr is not dereferenced if it
        is NULL.

From-SVN: r116755
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/template/pr28284.C [new file with mode: 0644]