This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR ipa/60315 (inliner explosion)
- From: Andreas Schwab <schwab at suse dot de>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 27 Mar 2014 12:02:01 +0100
- Subject: Re: Fix PR ipa/60315 (inliner explosion)
- Authentication-results: sourceware.org; auth=none
- References: <20140326021653 dot GA14614 at kam dot mff dot cuni dot cz>
Jan Hubicka <hubicka@ucw.cz> writes:
> Index: testsuite/g++.dg/torture/pr60315.C
> ===================================================================
> --- testsuite/g++.dg/torture/pr60315.C (revision 0)
> +++ testsuite/g++.dg/torture/pr60315.C (revision 0)
> @@ -0,0 +1,32 @@
> +// { dg-do compile }
> +struct Base {
> + virtual int f() = 0;
> +};
> +
> +struct Derived : public Base {
> + virtual int f() final override {
> + return 42;
> + }
> +};
> +
> +extern Base* b;
> +
> +int main() {
> + return (static_cast<Derived*>(b)->*(&Derived::f))();
> +}
FAIL: g++.dg/torture/pr60315.C -O0 (test for excess errors)
Excess errors:
/usr/local/gcc/gcc-20140327/gcc/testsuite/g++.dg/torture/pr60315.C:7:19: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
/usr/local/gcc/gcc-20140327/gcc/testsuite/g++.dg/torture/pr60315.C:7:21: warning: override controls (override/final) only available with -std=c++11 or -std=gnu++11
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."