* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
@ 2015-05-12 20:52 ` manu at gcc dot gnu.org
2015-05-13 13:27 ` manu at gcc dot gnu.org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: manu at gcc dot gnu.org @ 2015-05-12 20:52 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 3122 bytes --]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |easyhack
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-05-12
CC| |manu at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Confirmed. A small testcase would help. Perhaps it would be even clearer if it
said something like: "non-static member function can be used only as the
operand for the function call operator()"
>From gcc-bugs-return-486171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue May 12 20:56:05 2015
Return-Path: <gcc-bugs-return-486171-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 11050 invoked by alias); 12 May 2015 20:56:05 -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 9250 invoked by uid 48); 12 May 2015 20:56:01 -0000
From: "dsl at dsl dot pp.ua" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/55375] libsanitizer license incomplete
Date: Tue, 12 May 2015 20:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: dsl at dsl dot pp.ua
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P1
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc attachments.created
Message-ID: <bug-55375-4-pJESgQFwon@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-55375-4@http.gcc.gnu.org/bugzilla/>
References: <bug-55375-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-05/txt/msg01011.txt.bz2
Content-length: 505
https://gcc.gnu.org/bugzilla/show_bug.cgi?idU375
Eliot <dsl at dsl dot pp.ua> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dsl at dsl dot pp.ua
--- Comment #5 from Eliot <dsl at dsl dot pp.ua> ---
Created attachment 35535
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id5535&actioníit
http://legup.eecg.utoronto.ca
http://legup.eecg.utoronto.ca
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
2015-05-12 20:52 ` [Bug c++/66130] " manu at gcc dot gnu.org
@ 2015-05-13 13:27 ` manu at gcc dot gnu.org
2015-05-13 16:33 ` tromey at gcc dot gnu.org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: manu at gcc dot gnu.org @ 2015-05-13 13:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #2 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
Created attachment 35537
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35537&action=edit
non-working patch
This patch fails for:
struct Local
{
void f();
};
Local *l;
void (Local::*ptr)();
decltype((l->*ptr)) i; // { dg-error "member function" }
/home/manuel/test1/src/gcc/testsuite/g++.dg/cpp0x/decltype31.C:11:19: error:
invalid use of non-static member function '#'offset_ref' not supported by
dump_decl#<declaration error>
We don't want to use %qE, but I'm not sure how to extract a declaration from an
offset_ref.
(It would be great to make such things an ICE with enable-checking, the patch
passes bootstrap+regression tests!)
>From gcc-bugs-return-486219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed May 13 13:56:30 2015
Return-Path: <gcc-bugs-return-486219-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 71506 invoked by alias); 13 May 2015 13:56:30 -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 69299 invoked by uid 48); 13 May 2015 13:56:26 -0000
From: "barry.revzin at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66135] New: trailing return type generic lambda
Date: Wed, 13 May 2015 13:56:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 5.1.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: barry.revzin at gmail dot com
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone
Message-ID: <bug-66135-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-05/txt/msg01059.txt.bz2
Content-length: 1067
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf135
Bug ID: 66135
Summary: trailing return type generic lambda
Product: gcc
Version: 5.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: barry.revzin at gmail dot com
Target Milestone: ---
Consider this attempt at implementing fmap for optionals in C++:
#include <boost/optional.hpp>
#include <iostream>
template <typename Func>
auto fmap(Func f)
{
return [=](auto arg) -> boost::optional<decltype(f(*arg))> { // **
if (arg) {
return f(*arg);
}
else {
return boost::none;
}
};
}
int main() {
auto id = fmap([](int i){ return i; });
auto res = id(boost::optional<int>{42});
std::cout << *res << std::endl;
}
This code compiles in clang 3.6, but on gcc 5.1 issues an error on the
indicated line:
error: invalid type argument of unary '*' (have 'auto:1')
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
2015-05-12 20:52 ` [Bug c++/66130] " manu at gcc dot gnu.org
2015-05-13 13:27 ` manu at gcc dot gnu.org
@ 2015-05-13 16:33 ` tromey at gcc dot gnu.org
2015-05-13 17:28 ` manu at gcc dot gnu.org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu.org @ 2015-05-13 16:33 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #3 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #1)
> Confirmed. A small testcase would help. Perhaps it would be even clearer if
> it said something like: "non-static member function can be used only as the
> operand for the function call operator()"
Here's something reasonably close to my real-life case:
struct X {
X(void *);
void m();
};
struct Y : public X{
Y(void*a, void *b) : X(m), mb(b) { }
void *mb;
};
A bit wordy perhaps. But you can see how the error is unclear (partly
due to that other bug):
pokyo. g++ --syntax-only r.cc
r.cc: In constructor ‘Y::Y(void*, void*)’:
r.cc:7:34: error: invalid use of non-static member function
Y(void*a, void *b) : X(m), mb(b) { }
^
It's even worse if you aren't familiar with the code - in my real-life
case, the typo was meant to be one of the argument names, but actually
named a method of a superclass that was in some other file...
>From gcc-bugs-return-486239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed May 13 16:59:57 2015
Return-Path: <gcc-bugs-return-486239-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31630 invoked by alias); 13 May 2015 16:59:57 -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 31437 invoked by uid 55); 13 May 2015 16:59:52 -0000
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/66133] Wrong-code with noreturn #pragma omp task body
Date: Wed, 13 May 2015 16:59: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: 5.1.1
X-Bugzilla-Keywords: wrong-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: jakub at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66133-4-GbGbaKzxU2@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66133-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66133-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-05/txt/msg01079.txt.bz2
Content-length: 960
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf133
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed May 13 16:59:20 2015
New Revision: 223171
URL: https://gcc.gnu.org/viewcvs?rev"3171&root=gcc&view=rev
Log:
PR middle-end/66133
* omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
make sure it is never noreturn, even when the task body does not
return.
(lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
right before GIMPLE_OMP_RETURN.
(make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
* testsuite/libgomp.c/pr66133.c: New test.
Added:
trunk/libgomp/testsuite/libgomp.c/pr66133.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/omp-low.c
trunk/libgomp/ChangeLog
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
` (2 preceding siblings ...)
2015-05-13 16:33 ` tromey at gcc dot gnu.org
@ 2015-05-13 17:28 ` manu at gcc dot gnu.org
2015-05-14 12:49 ` tromey at gcc dot gnu.org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: manu at gcc dot gnu.org @ 2015-05-13 17:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Tom Tromey from comment #3)
> Here's something reasonably close to my real-life case:
For this testcase, my patch gives:
test.cc:8:34: error: invalid use of non-static member function ‘void X::m()’
Y(void*a, void *b) : X(m), mb(b) { }
^
Of course, the location is bug 61940, which seems a bit harder to fix.
>From gcc-bugs-return-486241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed May 13 17:29:52 2015
Return-Path: <gcc-bugs-return-486241-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21388 invoked by alias); 13 May 2015 17:29:52 -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 21110 invoked by uid 48); 13 May 2015 17:29:48 -0000
From: "kargl at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/66128] ICE for some intrinsics with zero sized array parameter
Date: Wed, 13 May 2015 17:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: fortran
X-Bugzilla-Version: 5.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: kargl 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: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-66128-4-3mRioWsHuW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66128-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66128-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-05/txt/msg01081.txt.bz2
Content-length: 676
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf128
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-05-13
CC| |kargl at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from kargl at gcc dot gnu.org ---
Confirmed.
I glance at the simplification code suggests that gfortran
is not considering the possibility of zero-sized constant
arrays. Not sure how to fix this one.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
` (3 preceding siblings ...)
2015-05-13 17:28 ` manu at gcc dot gnu.org
@ 2015-05-14 12:49 ` tromey at gcc dot gnu.org
2015-05-14 16:10 ` manu at gcc dot gnu.org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: tromey at gcc dot gnu.org @ 2015-05-14 12:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #5 from Tom Tromey <tromey at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #4)
> For this testcase, my patch gives:
>
> test.cc:8:34: error: invalid use of non-static member function ‘void X::m()’
That seems great to me.
>From gcc-bugs-return-486277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 14 13:17:13 2015
Return-Path: <gcc-bugs-return-486277-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 38355 invoked by alias); 14 May 2015 13:17:12 -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 38274 invoked by uid 55); 14 May 2015 13:17:06 -0000
From: "ktkachov at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/65955] [arm] ICE during movcond_addsi split
Date: Thu, 14 May 2015 13:17: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: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ktkachov at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ktkachov at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-65955-4-SpUAyEopHw@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-65955-4@http.gcc.gnu.org/bugzilla/>
References: <bug-65955-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-05/txt/msg01117.txt.bz2
Content-length: 648
https://gcc.gnu.org/bugzilla/show_bug.cgi?ide955
--- Comment #16 from ktkachov at gcc dot gnu.org ---
Author: ktkachov
Date: Thu May 14 13:16:32 2015
New Revision: 223195
URL: https://gcc.gnu.org/viewcvs?rev"3195&root=gcc&view=rev
Log:
[ARM] Fix PR 65955: Do not take REGNO on non-REG operand in movcond_addsi
Backport from mainline
2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
PR target/65955
* config/arm/arm.md (movcond_addsi): Check that operands[2] is a
REG before taking its REGNO.
Modified:
branches/gcc-4_9-branch/gcc/ChangeLog
branches/gcc-4_9-branch/gcc/config/arm/arm.md
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
` (4 preceding siblings ...)
2015-05-14 12:49 ` tromey at gcc dot gnu.org
@ 2015-05-14 16:10 ` manu at gcc dot gnu.org
2015-05-15 9:28 ` paolo.carlini at oracle dot com
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: manu at gcc dot gnu.org @ 2015-05-14 16:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |paolo.carlini at oracle dot com
--- Comment #6 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Tom Tromey from comment #5)
> (In reply to Manuel López-Ibáñez from comment #4)
>
> > For this testcase, my patch gives:
> >
> > test.cc:8:34: error: invalid use of non-static member function ‘void X::m()’
>
> That seems great to me.
Perhaps Jason or Paolo know how to extract a declaration from an offset_ref for
the testcase in comment #2.
>From gcc-bugs-return-486291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 14 16:11:08 2015
Return-Path: <gcc-bugs-return-486291-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 124795 invoked by alias); 14 May 2015 16:11:08 -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 120388 invoked by uid 48); 14 May 2015 16:11:03 -0000
From: "zfefm at gmx dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/63513] Error to build gcc loaded from svn
Date: Thu, 14 May 2015 16:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: other
X-Bugzilla-Version: 5.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: blocker
X-Bugzilla-Who: zfefm at gmx dot de
X-Bugzilla-Status: WAITING
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: cc
Message-ID: <bug-63513-4-X3Bgsi3qH4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63513-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63513-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-05/txt/msg01131.txt.bz2
Content-length: 543
https://gcc.gnu.org/bugzilla/show_bug.cgi?idc513
zf <zfefm at gmx dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zfefm at gmx dot de
--- Comment #2 from zf <zfefm at gmx dot de> ---
I have the same problem when I try to build gcc (4.92 or 5.1) on my Macbook OS
10.9.5.
On my MacPro, also runing 10.9.5, this builds without problems. I have not yet
found the reason for this difference.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
` (5 preceding siblings ...)
2015-05-14 16:10 ` manu at gcc dot gnu.org
@ 2015-05-15 9:28 ` paolo.carlini at oracle dot com
2015-05-15 12:25 ` manu at gcc dot gnu.org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-05-15 9:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #7 from Paolo Carlini <paolo.carlini at oracle dot com> ---
First blush I'm wondering if in this specific case we couldn't forward from
dump_decl to dump_expr and just print ‘l->*ptr’. AFAICS, wouldn't be a
regression and would allow us to adopt immediately Manuel' patch.
>From gcc-bugs-return-486319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 09:29:33 2015
Return-Path: <gcc-bugs-return-486319-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 26148 invoked by alias); 15 May 2015 09:29:33 -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 26111 invoked by uid 48); 15 May 2015 09:29:28 -0000
From: "luca.stoppa at bbh dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/66157] New: bits/random.tcc compiler error when using -fno-for-scope
Date: Fri, 15 May 2015 09:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: 4.9.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: luca.stoppa at bbh dot com
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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created
Message-ID: <bug-66157-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-05/txt/msg01159.txt.bz2
Content-length: 1976
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66157
Bug ID: 66157
Summary: bits/random.tcc compiler error when using
-fno-for-scope
Product: gcc
Version: 4.9.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: luca.stoppa at bbh dot com
Target Milestone: ---
Created attachment 35545
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35545&action=edit
That example won't compile
Compiling a minimal example (empty main) that includes <algorithm> will result
into a compilation error.
g++ -std=c++14 -fno-for-scope m.cpp
/opt/rh/devtoolset-3/root/usr/include/c++/4.9.1/bits/random.tcc: In member
function âvoid std::seed_seq::generate(_RandomAccessIterator,
_RandomAccessIterator)â:
/opt/rh/devtoolset-3/root/usr/include/c++/4.9.1/bits/random.tcc:3444:19: error:
redeclaration of âstd::size_t __kâ
for (size_t __k = __m; __k < __m + __n; ++__k)
^
/opt/rh/devtoolset-3/root/usr/include/c++/4.9.1/bits/random.tcc:3422:19: note:
âstd::size_t __kâ previously declared here
for (size_t __k = 0; __k < __m; ++__k)
I have checked the newest libstdc++ source code and the but is still there.
I would like to know whether
- "-fno-for-scope" is still a supported flag for c++11/14/1y, in that case I
believe I hit an implementation error. In case you decide this is really an
error the fix is really easy: __k should be changed to __k1 in the first loop,
__k2 in the second loop, and so on.
- if it is not supported, I think the gcc documentation should be updated.
Testcases:
g++ -std=c++11 -fno-for-scope m.cpp won't compile
g++ -std=c++14 -fno-for-scope m.cpp won't compile
g++ -std=c++1y -fno-for-scope m.cpp won't compile
when removing -fno-for-scope everything is fine.
Thanks,
Luca
>From gcc-bugs-return-486320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 09:39:21 2015
Return-Path: <gcc-bugs-return-486320-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 65697 invoked by alias); 15 May 2015 09:39:21 -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 65628 invoked by uid 55); 15 May 2015 09:39:17 -0000
From: "ienkovich at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/66134] [CHKP] ICE: Unable to coalesce ssa_names 18 and 17 which are marked as MUST COALESCE
Date: Fri, 15 May 2015 09:39: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: ienkovich at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ienkovich at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66134-4-jfvuUFfHgN@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66134-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66134-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-05/txt/msg01160.txt.bz2
Content-length: 631
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf134
--- Comment #1 from Ilya Enkovich <ienkovich at gcc dot gnu.org> ---
Author: ienkovich
Date: Fri May 15 09:38:44 2015
New Revision: 223215
URL: https://gcc.gnu.org/viewcvs?rev"3215&root=gcc&view=rev
Log:
gcc/
PR middle-end/66134
* tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
(chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
gcc/testsuite/
PR middle-end/66134
* gcc.target/i386/mpx/pr66134.c: New test.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-chkp.c
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
` (6 preceding siblings ...)
2015-05-15 9:28 ` paolo.carlini at oracle dot com
@ 2015-05-15 12:25 ` manu at gcc dot gnu.org
2015-05-15 15:16 ` paolo.carlini at oracle dot com
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: manu at gcc dot gnu.org @ 2015-05-15 12:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #8 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to Paolo Carlini from comment #7)
> First blush I'm wondering if in this specific case we couldn't forward from
> dump_decl to dump_expr and just print ‘l->*ptr’. AFAICS, wouldn't be a
> regression and would allow us to adopt immediately Manuel' patch.
I could simply do
if (DECL_P(expr)) error("%qD") else error("%qE")
but I was trying to avoid %qE because I think pretty-printing user coded
expressions is something we should always avoid since they usually do not come
out as written by the user.
I would prefer to print:
error: invalid use of non-static member function 'void (Local::*ptr)()'
which tells the user that ->*ptr is a pointer to member-function.
>From gcc-bugs-return-486327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 12:28:31 2015
Return-Path: <gcc-bugs-return-486327-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 70981 invoked by alias); 15 May 2015 12:28:31 -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 70951 invoked by uid 48); 15 May 2015 12:28:27 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/66140] ICE at extract_insn, at recog.c:2343 when compiling for alpha with gcc-5.1.1
Date: Fri, 15 May 2015 12:28: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.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 4.9.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status assigned_to target_milestone
Message-ID: <bug-66140-4-6uOLv7Ubfs@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66140-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66140-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-05/txt/msg01167.txt.bz2
Content-length: 581
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66140
Uroš Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |ubizjak at gmail dot com
Target Milestone|--- |4.9.3
--- Comment #2 from Uroš Bizjak <ubizjak at gmail dot com> ---
Patch at [1].
[1] https://gcc.gnu.org/ml/gcc-patches/2015-05/msg01396.html
>From gcc-bugs-return-486328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 12:31:58 2015
Return-Path: <gcc-bugs-return-486328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 113607 invoked by alias); 15 May 2015 12:31:58 -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 113152 invoked by uid 48); 15 May 2015 12:31:54 -0000
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug web/64968] Upgrade GCC Bugzilla to 5.0
Date: Fri, 15 May 2015 12:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: web
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: ubizjak at gmail dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: LpSolit at netscape dot net
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-64968-4-3DICZsksFI@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-64968-4@http.gcc.gnu.org/bugzilla/>
References: <bug-64968-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-05/txt/msg01168.txt.bz2
Content-length: 220
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64968
--- Comment #41 from Uroš Bizjak <ubizjak at gmail dot com> ---
The GCC bugzilla favicon now shows generic Bugzilla favicon. Previously, it was
a GCC favicon.
>From gcc-bugs-return-486329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 12:54:24 2015
Return-Path: <gcc-bugs-return-486329-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 59143 invoked by alias); 15 May 2015 12:54:24 -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 59101 invoked by uid 48); 15 May 2015 12:54:20 -0000
From: "dhowells at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/66140] ICE at extract_insn, at recog.c:2343 when compiling for alpha with gcc-5.1.1
Date: Fri, 15 May 2015 12:54: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.1.1
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dhowells at redhat dot com
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: ubizjak at gmail dot com
X-Bugzilla-Target-Milestone: 4.9.3
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-66140-4-T0phEr2iOo@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66140-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66140-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-05/txt/msg01169.txt.bz2
Content-length: 165
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf140
--- Comment #3 from dhowells at redhat dot com <dhowells at redhat dot com> ---
The compiler works now, thanks!
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
` (7 preceding siblings ...)
2015-05-15 12:25 ` manu at gcc dot gnu.org
@ 2015-05-15 15:16 ` paolo.carlini at oracle dot com
2015-05-15 17:37 ` paolo.carlini at oracle dot com
2015-06-03 19:23 ` paolo at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-05-15 15:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #9 from Paolo Carlini <paolo.carlini at oracle dot com> ---
(In reply to Manuel López-Ibáñez from comment #8)
> (In reply to Paolo Carlini from comment #7)
> > First blush I'm wondering if in this specific case we couldn't forward from
> > dump_decl to dump_expr and just print ‘l->*ptr’. AFAICS, wouldn't be a
> > regression and would allow us to adopt immediately Manuel' patch.
>
> I could simply do
>
> if (DECL_P(expr)) error("%qD") else error("%qE")
Sure.
> but I was trying to avoid %qE because I think pretty-printing user coded
> expressions is something we should always avoid since they usually do not
> come out as written by the user.
In general, I know that ;)
> I would prefer to print:
>
> error: invalid use of non-static member function 'void (Local::*ptr)()'
>
> which tells the user that ->*ptr is a pointer to member-function.
But the error message is about l->*ptr, not about ptr per se. Thus I think that
in such cases using dump_type (or %qT at the call site) on TREE_TYPE (t)
(TREE_TYPE (expr)) should be Ok.
>From gcc-bugs-return-486356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri May 15 15:32:10 2015
Return-Path: <gcc-bugs-return-486356-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 104572 invoked by alias); 15 May 2015 15:32:10 -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 104499 invoked by uid 48); 15 May 2015 15:32:07 -0000
From: "redi at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/13981] Give message about incomplete class that might be implicitly upcasted.
Date: Fri, 15 May 2015 15:32: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: 3.4.0
X-Bugzilla-Keywords: diagnostic
X-Bugzilla-Severity: enhancement
X-Bugzilla-Who: redi at gcc dot gnu.org
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Resolution: FIXED
X-Bugzilla-Priority: P2
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 5.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-13981-4-R2sRyCzKQc@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-13981-4@http.gcc.gnu.org/bugzilla/>
References: <bug-13981-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-05/txt/msg01196.txt.bz2
Content-length: 441
https://gcc.gnu.org/bugzilla/show_bug.cgi?id\x13981
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu.org
--- Comment #9 from Jonathan Wakely <redi at gcc dot gnu.org> ---
*** Bug 66161 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
` (8 preceding siblings ...)
2015-05-15 15:16 ` paolo.carlini at oracle dot com
@ 2015-05-15 17:37 ` paolo.carlini at oracle dot com
2015-06-03 19:23 ` paolo at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2015-05-15 17:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC|paolo.carlini at oracle dot com |
Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com
--- Comment #11 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Agreed, thanks Manuel. I can handle this, send the complete patch to the
mailing list for review. I think that in the second case it would be more
correct to tweak the error message a bit, and actually say "invalid use of
non-static member function of type %qT", instead of just "... function %qT".
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/66130] "invalid use of non-static member function" message could be clearer
2015-05-12 16:57 [Bug c++/66130] New: "invalid use of non-static member function" message could be clearer tromey at gcc dot gnu.org
` (9 preceding siblings ...)
2015-05-15 17:37 ` paolo.carlini at oracle dot com
@ 2015-06-03 19:23 ` paolo at gcc dot gnu.org
10 siblings, 0 replies; 12+ messages in thread
From: paolo at gcc dot gnu.org @ 2015-06-03 19:23 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66130
--- Comment #12 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> ---
Author: paolo
Date: Wed Jun 3 19:23:20 2015
New Revision: 224099
URL: https://gcc.gnu.org/viewcvs?rev=224099&root=gcc&view=rev
Log:
2015-06-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
Paolo Carlini <paolo.carlini@oracle.com>
PR c++/66130
* typeck.c (invalid_nonstatic_memfn_p): Add location_t parameter and
use it in the diagnostic.
(decay_conversion): Adjust call.
* semantics.c (finish_decltype_type): Likewise.
* call.c (resolve_args, build_new_op_1,
perform_implicit_conversion_flags): Adjust calls.
* cvt.c (ocp_convert, convert_to_void): Likewise.
* cp-tree.h (invalid_nonstatic_memfn_p): Update declaration.
2015-06-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
Paolo Carlini <paolo.carlini@oracle.com>
PR c++/66130
* g++.dg/other/pr66130.C: New.
* g++.dg/cpp0x/pr66130.C: Likewise.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr66130.C
trunk/gcc/testsuite/g++.dg/other/pr66130.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/cvt.c
trunk/gcc/cp/semantics.c
trunk/gcc/cp/typeck.c
trunk/gcc/testsuite/ChangeLog
>From gcc-bugs-return-488031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Jun 03 19:25:01 2015
Return-Path: <gcc-bugs-return-488031-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 123665 invoked by alias); 3 Jun 2015 19:25:01 -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 123603 invoked by uid 48); 3 Jun 2015 19:24:57 -0000
From: "paolo.carlini at oracle dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/66130] "invalid use of non-static member function" message could be clearer
Date: Wed, 03 Jun 2015 19:25: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.2
X-Bugzilla-Keywords: easyhack, patch
X-Bugzilla-Severity: normal
X-Bugzilla-Who: paolo.carlini at oracle 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 assigned_to target_milestone
Message-ID: <bug-66130-4-5UxFk1jCXX@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-66130-4@http.gcc.gnu.org/bugzilla/>
References: <bug-66130-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-06/txt/msg00363.txt.bz2
Content-length: 575
https://gcc.gnu.org/bugzilla/show_bug.cgi?idf130
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org
Target Milestone|--- |6.0
--- Comment #13 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Done.
^ permalink raw reply [flat|nested] 12+ messages in thread