Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20181017 (experimental)

Options
Warnings
Boost 1.68.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
prog.cc: In instantiation of 'class Outer<void>::Failure<Cls>':
prog.cc:15:18:   required from here
prog.cc:5:33: error: template parameter 'template<class> template<class> class<template-parameter-2-1>'
    5 |   template <template <typename> class>
      |                                 ^~~~~
prog.cc:8:18: error: redeclared here as 'template<class> class<template-parameter-1-1>'
    8 |     friend class Failure;
      |                  ^~~~~~~
prog.cc: In function 'int main()':
prog.cc:15:18: warning: unused variable 'var' [-Wunused-variable]
   15 |   Outer<void>::F var;
      |                  ^~~
Exit Code:
1