diff options
Diffstat (limited to 'gcc/cp/pt.c')
-rw-r--r-- | gcc/cp/pt.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index 2a54986c551..ade17a5cedd 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -9156,13 +9156,7 @@ tsubst (tree t, tree args, tsubst_flags_t complain, tree in_decl) message to avoid spewing a ton of messages during a single bad template instantiation. */ if (complain & tf_error -#ifdef USE_MAPPED_LOCATION - && last_loc != input_location -#else - && (last_loc.line != input_line - || last_loc.file != input_filename) -#endif - ) + && last_loc != input_location) { if (TREE_CODE (type) == VOID_TYPE) error ("forming reference to void"); |