public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59480] New: Missing error diagnostic: friend declaration specifying a default argument must be a definition
@ 2013-12-12 8:36 burnus at gcc dot gnu.org
2013-12-12 8:40 ` [Bug c++/59480] " burnus at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-12-12 8:36 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480
Bug ID: 59480
Summary: Missing error diagnostic: friend declaration
specifying a default argument must be a definition
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: accepts-invalid, diagnostic
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
The following code compiles with GCC with "g++ -Wall -Werror -std=c++11
-pedantic":
class test {
friend int bar(int = true);
};
However, with Clang++ it is rejected with:
error: friend declaration specifying a default argument must be a definition
In N3337, one finds at the end of the paragraph 8.3.6.4 [dcl.fct.default]: "If
a friend declaration specifies a default argument expression, that declaration
shall be a definition and shall be the only declaration of the function or
function template in the translation unit."
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition
2013-12-12 8:36 [Bug c++/59480] New: Missing error diagnostic: friend declaration specifying a default argument must be a definition burnus at gcc dot gnu.org
@ 2013-12-12 8:40 ` burnus at gcc dot gnu.org
2014-06-26 17:19 ` paolo.carlini at oracle dot com
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: burnus at gcc dot gnu.org @ 2013-12-12 8:40 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition
2013-12-12 8:36 [Bug c++/59480] New: Missing error diagnostic: friend declaration specifying a default argument must be a definition burnus at gcc dot gnu.org
2013-12-12 8:40 ` [Bug c++/59480] " burnus at gcc dot gnu.org
@ 2014-06-26 17:19 ` paolo.carlini at oracle dot com
2014-12-14 1:05 ` ville.voutilainen at gmail dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2014-06-26 17:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |filip.roseen at gmail dot com
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> ---
*** Bug 61470 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition
2013-12-12 8:36 [Bug c++/59480] New: Missing error diagnostic: friend declaration specifying a default argument must be a definition burnus at gcc dot gnu.org
2013-12-12 8:40 ` [Bug c++/59480] " burnus at gcc dot gnu.org
2014-06-26 17:19 ` paolo.carlini at oracle dot com
@ 2014-12-14 1:05 ` ville.voutilainen at gmail dot com
2015-08-24 14:43 ` manu at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ville.voutilainen at gmail dot com @ 2014-12-14 1:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59480
Ville Voutilainen <ville.voutilainen at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-12-14
CC| |ville.voutilainen at gmail dot com
Ever confirmed|0 |1
Known to fail| |4.8.2, 4.9.1, 5.0
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition
2013-12-12 8:36 [Bug c++/59480] New: Missing error diagnostic: friend declaration specifying a default argument must be a definition burnus at gcc dot gnu.org
` (2 preceding siblings ...)
2014-12-14 1:05 ` ville.voutilainen at gmail dot com
@ 2015-08-24 14:43 ` manu at gcc dot gnu.org
2015-08-24 15:02 ` redi at gcc dot gnu.org
2015-08-24 15:31 ` manu at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu.org @ 2015-08-24 14:43 UTC (permalink / raw)
To: gcc-bugs
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
CC| |manu at gcc dot gnu.org
--- Comment #3 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Strangely enough, this is one of the bugs in GCC that OpenMandriva developers
present as a reason for them switching to Clang as the default compiler.
http://mirror.as35701.net/video.fosdem.org//2015/devroom-llvm_toolchain/openmandriva__CAM_ONLY.mp4
(around 16:00)
class A {
friend void b(int, const char *s= 0);
};
>From gcc-bugs-return-495511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 24 14:57:48 2015
Return-Path: <gcc-bugs-return-495511-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 53139 invoked by alias); 24 Aug 2015 14:57:47 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 53071 invoked by uid 48); 24 Aug 2015 14:57:43 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition
Date: Mon, 24 Aug 2015 14:57:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords: accepts-invalid, diagnostic
X-Bugzilla-Severity: normal
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-59480-4-gmCRPSwsqk@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59480-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59480-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg01653.txt.bz2
Content-length: 800
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 the default
> compiler.
>
> http://mirror.as35701.net/video.fosdem.org//2015/devroom-llvm_toolchain/
> openmandriva__CAM_ONLY.mp4 (around 16:00)
>
> class A {
> friend void b(int, const char *s= 0);
> };
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, going back to 4.4, so I
suspect they are looking for reasons to justify a move they wanted to make
anyway, and this bug is incidental.
>From gcc-bugs-return-495512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 24 14:58:39 2015
Return-Path: <gcc-bugs-return-495512-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 54866 invoked by alias); 24 Aug 2015 14:58:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 54792 invoked by uid 48); 24 Aug 2015 14:58:32 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/67298] [6 Regression] 254.gap in SPEC CPU 2000 is miscompiled
Date: Mon, 24 Aug 2015 14:58:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-67298-4-RPKMz7elsD@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67298-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67298-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg01654.txt.bz2
Content-length: 249
https://gcc.gnu.org/bugzilla/show_bug.cgi?idg298
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Also does using -fwrapv fix the problem? It might be the case gap just has
undefined code in it and now we produce better code.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition
2013-12-12 8:36 [Bug c++/59480] New: Missing error diagnostic: friend declaration specifying a default argument must be a definition burnus at gcc dot gnu.org
` (3 preceding siblings ...)
2015-08-24 14:43 ` manu at gcc dot gnu.org
@ 2015-08-24 15:02 ` redi at gcc dot gnu.org
2015-08-24 15:31 ` manu at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2015-08-24 15:02 UTC (permalink / raw)
To: gcc-bugs
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 -std=c11 default.
etc. etc.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59480] Missing error diagnostic: friend declaration specifying a default argument must be a definition
2013-12-12 8:36 [Bug c++/59480] New: Missing error diagnostic: friend declaration specifying a default argument must be a definition burnus at gcc dot gnu.org
` (4 preceding siblings ...)
2015-08-24 15:02 ` redi at gcc dot gnu.org
@ 2015-08-24 15:31 ` manu at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: manu at gcc dot gnu.org @ 2015-08-24 15:31 UTC (permalink / raw)
To: gcc-bugs
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, going back to 4.4,
> so I suspect they are looking for reasons to justify a move they wanted to
> make anyway, and this bug is incidental.
Indeed. What surprises me is that, contrary to the *BSD distros, their actual
motivation does not seem to be the license, so what is it?
>From gcc-bugs-return-495521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Aug 24 15:33:04 2015
Return-Path: <gcc-bugs-return-495521-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 77543 invoked by alias); 24 Aug 2015 15:33:04 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 67749 invoked by uid 48); 24 Aug 2015 15:32:55 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/67329] [5] gcc.dg/tree-ssa/ssa-dom-cse-2.c fails on -march=pentium or -march=iamcu
Date: Mon, 24 Aug 2015 15:33:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution target_milestone
Message-ID: <bug-67329-4-xcyrTbiX6y@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67329-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67329-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg01663.txt.bz2
Content-length: 477
https://gcc.gnu.org/bugzilla/show_bug.cgi?idg329
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Target Milestone|--- |6.0
--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for GCC 6.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-08-24 15:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-12 8:36 [Bug c++/59480] New: Missing error diagnostic: friend declaration specifying a default argument must be a definition burnus at gcc dot gnu.org
2013-12-12 8:40 ` [Bug c++/59480] " burnus at gcc dot gnu.org
2014-06-26 17:19 ` paolo.carlini at oracle dot com
2014-12-14 1:05 ` ville.voutilainen at gmail dot com
2015-08-24 14:43 ` manu at gcc dot gnu.org
2015-08-24 15:02 ` redi at gcc dot gnu.org
2015-08-24 15:31 ` manu at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).