[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-09-19 Thread reichelt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Volker Reichelt changed: What|Removed |Added CC||rafael.espindola at ic dot unicamp

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-08-07 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Paolo Carlini changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-08-07 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #21 from paolo at gcc dot gnu.org --- Author: paolo Date: Tue Aug 7 16:40:18 2018 New Revision: 263361 URL: https://gcc.gnu.org/viewcvs?rev=263361=gcc=rev Log: /cp 2018-08-07 Paolo Carlini PR c++/59480, DR 136 *

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-08-06 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #20 from Paolo Carlini --- That's good to know, thanks!

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-23 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #19 from Tobias Burnus --- (In reply to Paolo Carlini from comment #15) > Tobias, I'm currently playing with something like the attached, which seems > only moderately more complex and passes all my tests so far. If you have > ways

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-20 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Paolo Carlini changed: What|Removed |Added Attachment #44413|0 |1 is obsolete|

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-20 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #17 from Paolo Carlini --- If we can exploit DECL_HIDDEN_FRIEND_P of the olddecl everything is much easier: see attached draft which I'm probably going to resubmit as-is of with only minor modifications.

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #16 from Paolo Carlini --- Created attachment 44413 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44413=edit Only draft front-end changes, no testcases

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #15 from Paolo Carlini --- Tobias, I'm currently playing with something like the attached, which seems only moderately more complex and passes all my tests so far. If you have ways to further stress it, I would be glad to hear about

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #14 from Paolo Carlini --- Another testcase that we want to accept: class Matrix; void rot90 (const Matrix& a, int k = 1) { } class Matrix { friend void rot90 (const Matrix&, int); }; void rot90 (const Matrix& a, int k); We

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #13 from paolo at gcc dot gnu.org --- Author: paolo Date: Thu Jul 19 16:58:06 2018 New Revision: 262883 URL: https://gcc.gnu.org/viewcvs?rev=262883=gcc=rev Log: 2018-07-19 Paolo Carlini Revert fix for c++/59480 (and

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #12 from Paolo Carlini --- Umpf. Unfortunately this doesn't work because the second time we see rot90 duplicate_decls smashes together the first two declarations and we end up with a friend declaration which has the defaults and as

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-19 Thread burnus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Tobias Burnus changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-18 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Paolo Carlini changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-18 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #9 from paolo at gcc dot gnu.org --- Author: paolo Date: Wed Jul 18 10:27:12 2018 New Revision: 262851 URL: https://gcc.gnu.org/viewcvs?rev=262851=gcc=rev Log: /cp 2018-07-18 Paolo Carlini * class.c

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-11 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Andrew Pinski changed: What|Removed |Added CC||zhonghao at pku dot org.cn --- Comment

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2018-07-10 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Paolo Carlini changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2015-08-24 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #6 from Manuel López-Ibáñez manu at gcc dot gnu.org --- (In reply to Jonathan Wakely from comment #4) And on the very next slide they give another example of a bug accepted by GCC, which is rejected by every version of GCC I tried,

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2015-08-24 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Manuel López-Ibáñez manu at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed|2014-12-14 00:00:00 |2015-8-24

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2015-08-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org --- (In reply to Manuel López-Ibáñez from comment #3) Strangely enough, this is one of the bugs in GCC that OpenMandriva developers present as a reason for them switching to Clang as

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2015-08-24 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #5 from Jonathan Wakely redi at gcc dot gnu.org --- And the next slide shows a missing warning, that actually GCC has warned about since 4.8 And the next slide is a gnu89-inline issue, which would also show up with GCC 5 due to the

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2014-12-13 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Ville Voutilainen ville.voutilainen at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2014-06-26 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC|

[Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition

2013-12-12 Thread burnus at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480 --- Comment #1 from Tobias Burnus burnus at gcc dot gnu.org --- See also http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#136