diff options
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 11994c6122a..6cc7befe264 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -3049,6 +3049,8 @@ location_of (tree t) if (DECL_P (t)) return DECL_SOURCE_LOCATION (t); + if (TREE_CODE (t) == DEFAULT_ARG) + return defarg_location (t); return EXPR_LOC_OR_LOC (t, input_location); } |