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] |
Hi, duplicate diagnostics for (a pretty common error, I would guess): void f() = delete; void g() { f(); } 47695.C: In function ‘void g()’: 47695.C:2:12: error: use of deleted function ‘void f()’ 47695.C:1:6: error: declared here 47695.C:2:14: error: use of deleted function ‘void f()’ 47695.C:1:6: error: declared here I'm fixing it by returning a bool from mark_used and checking it in finish_id_expression. Works fine, passes the testsuite. Or shall we do something more sophisticated?!? Thanks, Paolo. PS: sorry if you are receiving this message twice, today I'm experiencing problems with my connection ////////////////////
Attachment:
CL_47695
Description: Binary data
Attachment:
patch_47695
Description: Binary data
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |