public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
@ 2020-05-04 19:13 marxin at gcc dot gnu.org
2020-05-04 19:14 ` [Bug c++/94946] " marxin at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-04 19:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
Bug ID: 94946
Summary: [10/11 Regression] error: ‘template<class returnType>
JSC::FunctionPtr::FunctionPtr(returnType (*)())’
cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Keywords: needs-reduction
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: marxin at gcc dot gnu.org
CC: jason at gcc dot gnu.org
Target Milestone: ---
Created attachment 48445
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48445&action=edit
Unreduced test-case
It's a recent regression on i586 target seen on libqt5-qtwebkit package:
$ g++ qt.ii -c -m32 -fmax-errors=1
^C
marxin@marxinbox:~/BIG/osc/openSUSE:Factory:Staging:N/libqt5-qtwebkit> export
PATH=/home/marxin/bin/gcc/bin/:/home/marxin/bin/cvise/usr/local/bin:$PATH &&
export LD_LIBRARY_PATH=/home/marxin/bin/gcc/lib64/:$LD_LIBRARY_PATH
marxin@marxinbox:~/BIG/osc/openSUSE:Factory:Staging:N/libqt5-qtwebkit> g++
qt.ii -c -m32 -fmax-errors=1
In file included from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/jit/JITStubRoutine.h:32,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/heap/JITStubRoutineSet.h:29,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/heap/Heap.h:33,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/heap/DeferGC.h:29,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/runtime/ConcurrentJITLock.h:29,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/bytecode/ArrayProfile.h:29,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:28:
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h:184:5:
error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType
(*)())’ cannot be overloaded with ‘template<class returnType>
JSC::FunctionPtr::FunctionPtr(returnType (*)())’
In file included from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/jit/JITStubRoutine.h:32,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/heap/JITStubRoutineSet.h:29,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/heap/Heap.h:33,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/heap/DeferGC.h:29,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/runtime/ConcurrentJITLock.h:29,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/bytecode/ArrayProfile.h:29,
from
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/llint/LLIntOffsetsExtractor.cpp:28:
/home/abuild/rpmbuild/BUILD/qtwebkit-5.212.0-alpha3/Source/JavaScriptCore/assembler/MacroAssemblerCodeRef.h:94:5:
note: previous declaration ‘template<class returnType>
JSC::FunctionPtr::FunctionPtr(returnType (*)())’
compilation terminated due to -fmax-errors=1.
I'm reducing that right now.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
@ 2020-05-04 19:14 ` marxin at gcc dot gnu.org
2020-05-05 4:10 ` marxin at gcc dot gnu.org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-04 19:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |9.3.0
Target Milestone|--- |10.0
Ever confirmed|0 |1
Last reconfirmed| |2020-05-04
Status|UNCONFIRMED |NEW
Known to fail| |10.0, 11.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
2020-05-04 19:14 ` [Bug c++/94946] " marxin at gcc dot gnu.org
@ 2020-05-05 4:10 ` marxin at gcc dot gnu.org
2020-05-06 8:54 ` marxin at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-05 4:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-reduction |rejects-valid
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Reduced test-case:
$ cat qt.ii
class a {
template <typename b> a(b());
template <typename b> a(b(__attribute__((fastcall)) c)());
};
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
2020-05-04 19:14 ` [Bug c++/94946] " marxin at gcc dot gnu.org
2020-05-05 4:10 ` marxin at gcc dot gnu.org
@ 2020-05-06 8:54 ` marxin at gcc dot gnu.org
2020-05-06 18:24 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-06 8:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org,
| |mpolacek at gcc dot gnu.org,
| |nathan at gcc dot gnu.org
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Can please anybody take a look before we'll make 10.1 release?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
` (2 preceding siblings ...)
2020-05-06 8:54 ` marxin at gcc dot gnu.org
@ 2020-05-06 18:24 ` jakub at gcc dot gnu.org
2020-05-06 18:27 ` [Bug c++/94946] [9/10/11 " mpolacek at gcc dot gnu.org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-06 18:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Isn't 9 branch affected too? The r10-7998 change has been backported.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [9/10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
` (3 preceding siblings ...)
2020-05-06 18:24 ` jakub at gcc dot gnu.org
@ 2020-05-06 18:27 ` mpolacek at gcc dot gnu.org
2020-05-06 18:28 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2020-05-06 18:27 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[10/11 Regression] error: |[9/10/11 Regression] error:
|‘template<class returnType> |‘template<class returnType>
|JSC::FunctionPtr::FunctionP |JSC::FunctionPtr::FunctionP
|tr(returnType (*)())’ |tr(returnType (*)())’
|cannot be overloaded since |cannot be overloaded since
|r10-7998-g5f1cd1da1a805c3d |r10-7998-g5f1cd1da1a805c3d
--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Isn't 9 branch affected too? The r10-7998 change has been backported.
It is.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [9/10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
` (4 preceding siblings ...)
2020-05-06 18:27 ` [Bug c++/94946] [9/10/11 " mpolacek at gcc dot gnu.org
@ 2020-05-06 18:28 ` jakub at gcc dot gnu.org
2020-05-06 19:38 ` nathan at gcc dot gnu.org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-05-06 18:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.0 |9.4
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [9/10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
` (5 preceding siblings ...)
2020-05-06 18:28 ` jakub at gcc dot gnu.org
@ 2020-05-06 19:38 ` nathan at gcc dot gnu.org
2020-05-07 12:57 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-05-06 19:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Patch pushed to 9, 10 & master
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [9/10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
` (6 preceding siblings ...)
2020-05-06 19:38 ` nathan at gcc dot gnu.org
@ 2020-05-07 12:57 ` cvs-commit at gcc dot gnu.org
2020-05-07 13:28 ` cvs-commit at gcc dot gnu.org
2020-05-07 13:46 ` cvs-commit at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-07 12:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:1d865b29abc99122e9faf109fe8faf2d6616a073
commit r11-164-g1d865b29abc99122e9faf109fe8faf2d6616a073
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu May 7 14:56:51 2020 +0200
testsuite: Improve g++.dg/ext/attr-parm-1.C testcase [PR94946]
The testcase in the current form doesn't FAIL without the patch on
x86_64-linux unless also testing with -m32; as that the 64-bit testing
on that target is probably way more common, and we can use also attributes
that FAIL without the patch with -m64, the following patch adjusts the
test, so that it FAILs without the patch for both -m64 and -m32 (but not
-mx32) and PASSes with the patch.
2020-05-07 Jakub Jelinek <jakub@redhat.com>
PR c++/94946
* g++.dg/ext/attr-parm-1.C: Enable the test also for lp64 x86, use
sysv_abi and ms_abi attributes in that case instead of fastcall and
no attribute.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [9/10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
` (7 preceding siblings ...)
2020-05-07 12:57 ` cvs-commit at gcc dot gnu.org
@ 2020-05-07 13:28 ` cvs-commit at gcc dot gnu.org
2020-05-07 13:46 ` cvs-commit at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-07 13:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:dd38686d9c810cecbaa80bb82ed91caaa58ad635
commit r10-8117-gdd38686d9c810cecbaa80bb82ed91caaa58ad635
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu May 7 14:56:51 2020 +0200
testsuite: Improve g++.dg/ext/attr-parm-1.C testcase [PR94946]
The testcase in the current form doesn't FAIL without the patch on
x86_64-linux unless also testing with -m32; as that the 64-bit testing
on that target is probably way more common, and we can use also attributes
that FAIL without the patch with -m64, the following patch adjusts the
test, so that it FAILs without the patch for both -m64 and -m32 (but not
-mx32) and PASSes with the patch.
2020-05-07 Jakub Jelinek <jakub@redhat.com>
PR c++/94946
* g++.dg/ext/attr-parm-1.C: Enable the test also for lp64 x86, use
sysv_abi and ms_abi attributes in that case instead of fastcall and
no attribute.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/94946] [9/10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
` (8 preceding siblings ...)
2020-05-07 13:28 ` cvs-commit at gcc dot gnu.org
@ 2020-05-07 13:46 ` cvs-commit at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-05-07 13:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94946
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:fadd59262921825b135b8e018ac8510e97dee92a
commit r9-8577-gfadd59262921825b135b8e018ac8510e97dee92a
Author: Jakub Jelinek <jakub@redhat.com>
Date: Thu May 7 14:56:51 2020 +0200
testsuite: Improve g++.dg/ext/attr-parm-1.C testcase [PR94946]
The testcase in the current form doesn't FAIL without the patch on
x86_64-linux unless also testing with -m32; as that the 64-bit testing
on that target is probably way more common, and we can use also attributes
that FAIL without the patch with -m64, the following patch adjusts the
test, so that it FAILs without the patch for both -m64 and -m32 (but not
-mx32) and PASSes with the patch.
2020-05-07 Jakub Jelinek <jakub@redhat.com>
PR c++/94946
* g++.dg/ext/attr-parm-1.C: Enable the test also for lp64 x86, use
sysv_abi and ms_abi attributes in that case instead of fastcall and
no attribute.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2020-05-07 13:46 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-04 19:13 [Bug c++/94946] New: [10/11 Regression] error: ‘template<class returnType> JSC::FunctionPtr::FunctionPtr(returnType (*)())’ cannot be overloaded since r10-7998-g5f1cd1da1a805c3d marxin at gcc dot gnu.org
2020-05-04 19:14 ` [Bug c++/94946] " marxin at gcc dot gnu.org
2020-05-05 4:10 ` marxin at gcc dot gnu.org
2020-05-06 8:54 ` marxin at gcc dot gnu.org
2020-05-06 18:24 ` jakub at gcc dot gnu.org
2020-05-06 18:27 ` [Bug c++/94946] [9/10/11 " mpolacek at gcc dot gnu.org
2020-05-06 18:28 ` jakub at gcc dot gnu.org
2020-05-06 19:38 ` nathan at gcc dot gnu.org
2020-05-07 12:57 ` cvs-commit at gcc dot gnu.org
2020-05-07 13:28 ` cvs-commit at gcc dot gnu.org
2020-05-07 13:46 ` cvs-commit 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).