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/RFC] PR 58582


Hi,

this relatively old bug report is about an ICE during error recovery and some time ago I figured out that the below simple tweak to grokfndecl worked for it (we notice that duplicate_decls returned error_mark_node). Today, however, while formatting the original testcases, I noticed something slightly more interesting: at variance with both current clang and icc, we reject the below deleted6.C, thus we reject explicit instantiations of deleted template functions (without explaining that the function is deleted in the error message and still accepting the code with -fpermissive (?)). Thus the below tweak to instantiate_decl. Without it, 58582 is still fixed of course, only the testcases need a little adjusting.

Tested x86_64-linux.

Thanks,
Paolo.

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

Attachment: patch_58582
Description: Text document


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