From 8059d3507a3bd61c18ab89d46babdf28df29c6ee Mon Sep 17 00:00:00 2001 From: dgregor Date: Wed, 29 Aug 2007 12:25:01 +0000 Subject: 2007-08-29 Douglas Gregor PR c++/33194 * tree.c (build_type_attribute_qual_variant): Set canonical types on the final, unqualified attribute variant before building the qualified version. 2007-08-29 Douglas Gregor PR c++/33194 * g++.dg/other/canon-33194.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127896 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/g++.dg/other/canon-33194.C | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gcc/testsuite/g++.dg/other/canon-33194.C (limited to 'gcc/testsuite/g++.dg') diff --git a/gcc/testsuite/g++.dg/other/canon-33194.C b/gcc/testsuite/g++.dg/other/canon-33194.C new file mode 100644 index 00000000000..496aafe2c1c --- /dev/null +++ b/gcc/testsuite/g++.dg/other/canon-33194.C @@ -0,0 +1,21 @@ +// PR c++/33194 +void c_translate_location ( + void (*fail) ( + const char *fmt, ...) + __attribute__ ((noreturn, + format (printf, 1, 2))) + ); + + +struct dwflpp +{ + static void loc2c_error (const char *fmt, ...) + { + } + + void + translate_location() + { + return c_translate_location (&loc2c_error); + } +}; -- cgit v1.2.1