Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 10.0.1 20200121 (experimental)

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

noname-1

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/gcc-head/include -std=gnu++2a
prog.cc: In instantiation of 'Producer<A>::Producer(T&& ...) [with T = {std::integral_constant<int, 8>}; int A = 1]':
prog.cc:36:45:   required from here
prog.cc:26:29: error: dependent-name 'Container<A>::Internal' is parsed as a non-type, but instantiation yields a type
   26 |     auto const fails = std::make_shared<Container<A>::Internal>(std::forward<T>(t)...);
      |                        ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:26:29: note: say 'typename Container<A>::Internal' if a type is meant
Exit Code:
1