aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/lookup/builtin3.C
diff options
context:
space:
mode:
authorOllie Wild <aaw@google.com>2007-08-17 21:42:38 +0000
committerOllie Wild <aaw@google.com>2007-08-17 21:42:38 +0000
commit6ac038e40394a0b2f4314a5c782b5b95dc26b010 (patch)
treea410ca7db354fe2d0df4c2e7bd1f54cb516b92c9 /gcc/testsuite/g++.dg/lookup/builtin3.C
parente6153f6922c8cae8b6f2136b236471da827c7e54 (diff)
PR c++/31749
gcc/cp/ * name-lookup.c (do_nonmember_using_decl): Shift implicit type declarations into appropriate slots for comparison. Fix type comparison. gcc/testsuite/ * g++.dg/lookup/builtin3.C: New test. * g++.dg/lookup/builtin4.C: New test. * g++.dg/lookup/using19.C: New test. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@127600 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/g++.dg/lookup/builtin3.C')
-rw-r--r--gcc/testsuite/g++.dg/lookup/builtin3.C15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/lookup/builtin3.C b/gcc/testsuite/g++.dg/lookup/builtin3.C
new file mode 100644
index 00000000000..3a29d878313
--- /dev/null
+++ b/gcc/testsuite/g++.dg/lookup/builtin3.C
@@ -0,0 +1,15 @@
+// Copyright (C) 2007 Free Software Foundation
+// Contributed by Ollie Wild <aaw@google.com>
+// Origin: Volker Reichelt <reichelt@gcc.gnu.org>
+// { dg-do compile }
+
+// PR 31749: ICE with redeclaration of builtin
+
+namespace std
+{
+ union abort;
+}
+
+void abort();
+
+using std::abort;