From: redi Date: Sat, 13 Oct 2018 11:19:09 +0000 (+0000) Subject: Fix compilation failure with C++98 compilers X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a833e2b02293984ecf0e43b4c370abbc01ccbd76;p=thirdparty%2Fgcc.git Fix compilation failure with C++98 compilers * opt-problem.h (opt_wrapper): Use template-argument-list when naming the base class, because using the injected-class-name was not clearly specified until DR 176. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@265140 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 75ab456362bd..1f84d8776d0c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-10-13 Jonathan Wakely + + * opt-problem.h (opt_wrapper): Use template-argument-list when naming + the base class, because using the injected-class-name was not clearly + specified until DR 176. + 2018-10-12 Paul Koning * config/pdp11/pdp11.md (doloop_end): New expander. diff --git a/gcc/opt-problem.h b/gcc/opt-problem.h index 68d7e4a5f7b5..55d0ff024f70 100644 --- a/gcc/opt-problem.h +++ b/gcc/opt-problem.h @@ -214,7 +214,7 @@ class opt_result : public opt_wrapper /* Private ctor. Instances should be created by the success and failure static member functions. */ opt_result (wrapped_t result, opt_problem *problem) - : opt_wrapper (result, problem) + : opt_wrapper (result, problem) {} };