summaryrefslogtreecommitdiff
path: root/gcc/cp/pt.c
diff options
context:
space:
mode:
authorMike Stump <mrs@gcc.gnu.org>1997-04-23 22:39:53 +0000
committerMike Stump <mrs@gcc.gnu.org>1997-04-23 22:39:53 +0000
commiteb66be0e6c3dd15ac08a41a09fcdc309662ac208 (patch)
treead6acff4ab8e23b617b1b823fb310683e0b4ae03 /gcc/cp/pt.c
parent2ec43107c9ad58aae26ecc550ca365b8d79d651d (diff)
downloadgcc-eb66be0e6c3dd15ac08a41a09fcdc309662ac208.tar.gz
91th Cygnus<->FSF merge
From-SVN: r13971
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r--gcc/cp/pt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c
index d0a6c7644ef..7850be9b364 100644
--- a/gcc/cp/pt.c
+++ b/gcc/cp/pt.c
@@ -132,6 +132,9 @@ process_template_parm (list, next)
error (" a template type parameter must begin with `class' or `typename'");
TREE_TYPE (parm) = void_type_node;
}
+ else if (pedantic && TREE_CODE (TREE_TYPE (parm)) == REAL_TYPE)
+ cp_pedwarn ("`%T' is not a valid type for a template constant parameter",
+ TREE_TYPE (parm));
tinfo = make_node (TEMPLATE_CONST_PARM);
my_friendly_assert (TREE_PERMANENT (tinfo), 260.5);
if (TREE_PERMANENT (parm) == 0)