kparzysz wrote:
I'm seeing compilation errors with gcc 11:
```
/work/kparzysz/git/llvm.org/lldb/unittests/Host/JSONTransportTest.cpp:190:9:
error: declaration of ‘using Req = struct {anonymous}::test_protocol::Req’
changes meaning of ‘Req’ [-fpermissive]
190 | using Req = Req;
| ^~~
/work/kparzysz/git/llvm.org/lldb/unittests/Host/JSONTransportTest.cpp:52:8:
note: ‘Req’ declared here as ‘struct {anonymous}::test_protocol::Req’
52 | struct Req {
| ^~~
/work/kparzysz/git/llvm.org/lldb/unittests/Host/JSONTransportTest.cpp:191:9:
error: declaration of ‘using Resp = struct {anonymous}::test_protocol::Resp’
changes meaning of ‘Resp’ [-fpermissive]
191 | using Resp = Resp;
| ^~~~
/work/kparzysz/git/llvm.org/lldb/unittests/Host/JSONTransportTest.cpp:79:8:
note: ‘Resp’ declared here as ‘struct {anonymous}::test_protocol::Resp’
79 | struct Resp {
| ^~~~
/work/kparzysz/git/llvm.org/lldb/unittests/Host/JSONTransportTest.cpp:192:9:
error: declaration of ‘using Evt = struct {anonymous}::test_protocol::Evt’
changes meaning of ‘Evt’ [-fpermissive]
192 | using Evt = Evt;
| ^~~
/work/kparzysz/git/llvm.org/lldb/unittests/Host/JSONTransportTest.cpp:107:8:
note: ‘Evt’ declared here as ‘struct {anonymous}::test_protocol::Evt’
107 | struct Evt {
| ^~~
```
https://github.com/llvm/llvm-project/pull/159160
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits