diff options
author | Jason Merrill <jason@redhat.com> | 2008-02-13 02:08:11 -0500 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2008-02-13 02:08:11 -0500 |
commit | 3387721b8f006847d14827b574d0a5e933247c14 (patch) | |
tree | 727621e5833e3c60442e3e83e7814457964bc4e2 /gcc/cp/pt.c | |
parent | 156d614f906a2a88588408b945668e6190945199 (diff) | |
download | gcc-3387721b8f006847d14827b574d0a5e933247c14.zip gcc-3387721b8f006847d14827b574d0a5e933247c14.tar.gz gcc-3387721b8f006847d14827b574d0a5e933247c14.tar.bz2 |
re PR c++/34774 (templates, enumerations, overflow, ice)
PR c++/34774
* pt.c (value_dependent_expression_p): Look into DECL_INITIAL
of enumerators, too.
From-SVN: r132283
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index a1e6521..577b621 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -15638,7 +15638,7 @@ value_dependent_expression_p (tree expression) /* A non-type template parm. */ if (DECL_TEMPLATE_PARM_P (expression)) return true; - return false; + return value_dependent_expression_p (DECL_INITIAL (expression)); case VAR_DECL: /* A constant with integral or enumeration type and is initialized |