diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2018-10-13 12:19:09 +0100 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2018-10-13 12:19:09 +0100 |
commit | f77bca9ac3942b830c1e508bc5ac6fd0df2056f7 (patch) | |
tree | 23a3dcfcb989a8d65791dd8f53e1d46037a3d670 /gcc/opt-problem.h | |
parent | 3ea54ea16f5776d3905acc431235551748b4c7fc (diff) |
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.
From-SVN: r265140
Diffstat (limited to 'gcc/opt-problem.h')
-rw-r--r-- | gcc/opt-problem.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/opt-problem.h b/gcc/opt-problem.h index 68d7e4a5f7b..55d0ff024f7 100644 --- a/gcc/opt-problem.h +++ b/gcc/opt-problem.h @@ -214,7 +214,7 @@ class opt_result : public opt_wrapper <bool> /* 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 <bool> (result, problem) {} }; |