summaryrefslogtreecommitdiff
path: root/gcc/cp/semantics.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2011-01-21 13:59:40 -0500
committerJason Merrill <jason@gcc.gnu.org>2011-01-21 13:59:40 -0500
commit0eb35d462fca8490994778c4224676388c69828e (patch)
treefbc5f59d0e99a39dd657da45d67da5466b47d042 /gcc/cp/semantics.c
parentff5f50c52c421d75940ef9392211e3ab24d71332 (diff)
downloadgcc-0eb35d462fca8490994778c4224676388c69828e.tar.gz
re PR c++/46552 ([C++0x] Internal compiler error on pointer to member variable with template)
PR c++/46552 * semantics.c (cxx_eval_constant_expression): Handle OFFSET_REF. From-SVN: r169099
Diffstat (limited to 'gcc/cp/semantics.c')
-rw-r--r--gcc/cp/semantics.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/semantics.c b/gcc/cp/semantics.c
index 23ff27bf9a3..fa35d4ae990 100644
--- a/gcc/cp/semantics.c
+++ b/gcc/cp/semantics.c
@@ -7024,6 +7024,7 @@ cxx_eval_constant_expression (const constexpr_call *call, tree t,
case NON_DEPENDENT_EXPR:
case BASELINK:
case EXPR_STMT:
+ case OFFSET_REF:
if (!allow_non_constant)
error_at (EXPR_LOC_OR_HERE (t),
"expression %qE is not a constant-expression", t);