[Bug c++/98936] New: Incorrect computation of trivially copyable for class with user-declared move assignment operator, defined as deleted

2021-02-02 Thread adr26__gcc at nunsway dot co.uk via Gcc-bugs
: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: adr26__gcc at nunsway dot co.uk Target Milestone: --- Consider the following code: #include class Bar

[Bug c++/98524] accepts-invalid instantiation of variable template with different function pointer type from declaration

2021-01-05 Thread adr26__gcc at nunsway dot co.uk via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98524 --- Comment #1 from Andrew Rogers --- Apologies for the fat-fingering when copying in the code which triggers this condition! The top of this bug report should read - Consider: template void (*TF)(); template void (*TF)(int); !!! Andrew

[Bug c++/98524] New: accepts-invalid instantiation of variable template with different function pointer type from declaration

2021-01-05 Thread adr26__gcc at nunsway dot co.uk via Gcc-bugs
: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: adr26__gcc at nunsway dot co.uk Target Milestone: --- Consider: template void (*TF)(int); template void (*TF)(int); Per [temp.explicit]/6

[Bug c++/85604] New: Default template arguments in friend class template declarations should not be allowed

2018-05-02 Thread adr26__gcc at nunsway dot co.uk
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: adr26__gcc at nunsway dot co.uk Target Milestone: --- template struct Template_Class; struct Other_Struct { template friend struct Template_Class; }; template