Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

clang HEAD 11.0.0 (https://github.com/llvm/llvm-project.git d3e170c4388693b6628fa91cbf78506a5fb45439)

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

$ clang++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.72.0/clang-head/include -std=gnu++2a
prog.cc:20:10: error: overload resolution selected deleted operator '='
    bar1 = bar2; // 「operator=」と表示されない
    ~~~~ ^ ~~~~
prog.cc:13:13: note: candidate function has been explicitly deleted
    Foo<T>& operator=(Foo<T> const&) = delete;
            ^
prog.cc:8:12: note: candidate function [with U = int]
    Foo<T> operator=(const Foo<U> &arg) {
           ^
1 error generated.
Exit Code:
1