This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] c++/58796 Make nullptr match exception handlers of pointer type
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Jonathan Wakely <jwakely at redhat dot com>
- Cc: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: Sat, 16 Jul 2016 11:53:32 +0200
- Subject: Re: [PATCH] c++/58796 Make nullptr match exception handlers of pointer type
- Authentication-results: sourceware.org; auth=none
- References: <20160715114735.GQ12493@redhat.com>
* g++.dg/cpp0x/nullptr35.C (caught): Fix typo.
diff --git a/gcc/testsuite/g++.dg/cpp0x/nullptr35.C b/gcc/testsuite/g++.dg/cpp0x/nullptr35.C
index 2f93ce1..c84966f 100644
--- a/gcc/testsuite/g++.dg/cpp0x/nullptr35.C
+++ b/gcc/testsuite/g++.dg/cpp0x/nullptr35.C
@@ -11,7 +11,7 @@ int result = 0;
void __attribute__((noinline))
caught(int bit)
{
- result &= bit;
+ result |= bit;
}
struct A { };
--
2.9.1
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."