diff options
author | Jason Merrill <jason@redhat.com> | 2009-04-07 13:48:52 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2009-04-07 13:48:52 -0400 |
commit | 6ea2bd47dd50fdf50e5b71e7349dae094f2920fe (patch) | |
tree | aaa87a15f5942f4f114e17e7f79c23571f506e9b /gcc/c-common.c | |
parent | a2dc5812ff7b8d195399c4f9513dcf0376eba4d5 (diff) | |
download | gcc-6ea2bd47dd50fdf50e5b71e7349dae094f2920fe.zip gcc-6ea2bd47dd50fdf50e5b71e7349dae094f2920fe.tar.gz gcc-6ea2bd47dd50fdf50e5b71e7349dae094f2920fe.tar.bz2 |
re PR c++/25185 (deep typedef substitution in error message)
PR c++/25185
* c-common.h, c-common.c: Add flag_pretty_templates.
* c-opts.c (c_common_handle_option): Set it.
* c.opt: Add -fno-pretty-templates.
* doc/invoke.texi (C++ Dialect Options): Likewise.
* error.c (dump_function_decl): Don't pretty-print templates
if -fno-pretty-templates.
(count_non_default_template_args): Print all args if
-fno-pretty-templates.
From-SVN: r145697
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 9886cdf..3d11455 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -593,6 +593,11 @@ int flag_enforce_eh_specs = 1; int flag_threadsafe_statics = 1; +/* Nonzero if we want to pretty-print template specializations as the + template signature followed by the arguments. */ + +int flag_pretty_templates = 1; + /* Nonzero means warn about implicit declarations. */ int warn_implicit = 1; |