This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++ Patch] PR 21682 (DR 565)


Hi,

this patch resolves the bug by implementing the resolution of DR 565 (DRWP): for template functions, in order to establish that the program is ill-formed we want to check return type and template parameter list too. Thus, in practice, we want to accept the reduced testcase which came with c++/21682 (using24.C) and reject the testcase which I discussed in DR 565 (using25.C) (*)

Booted & tested x86_64-linux.

Thanks!
Paolo.

(*) Likewise current clang.

//////////////////////////

Attachment: CL_21682
Description: Text document

Attachment: patch_21682
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]