https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110836
--- Comment #2 from Andris Pavenis ---
Warning would allow to detected problem earlier.
Otherwise it could only be detected later in case when affected structure or
class is part of an library and its objects are not created directly inside the
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: andris at gcc dot gnu.org
Target Milestone: ---
Created attachment 55651
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55651&action=edit
example
GCC should repo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97240
--- Comment #2 from Andris Pavenis ---
Tried with gcc-12.0.1-20220216 (revision
875e493bf5eb04c11bc3846a6bfee47a6f183e3f).
gcc configured without additional configure parameters (Configured with:
../gcc-12.0.1-20220216/configure)
1) /opt/gcc-gi
||11.1.0
CC||andris at gcc dot gnu.org
--- Comment #1 from Andris Pavenis ---
Reproduced on Arch Linux with gcc-10.3.0 (killed process when memory use
reached about 30 GB)
Problem does not happen with gcc-11.0 (Also Arch Linux). Output
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365
--- Comment #11 from Andris Pavenis ---
OK. New version:
20220203-1.cpp: In function 'int main()':
20220203-1.cpp:19:24: warning: suspicious use of overloaded 'Test(const char
[4], const char[4])'
21 | Test test("foo", "bar");
|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365
--- Comment #9 from Andris Pavenis ---
>> The warning should be in case when both
>> 1) there is preferred standard conversion sequence for parameter of one
>> overloaded method
>
>Standard conversions include T -> const T&, and derived-to-base
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365
--- Comment #6 from Andris Pavenis ---
Suggested format (changed types to get real ambiguity and edited generated
message):
20220203-1.cpp: In function 'int main()':
20220203-1.cpp:19:24: warning: call of overloaded 'Test(const char [4],
unsign
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365
--- Comment #5 from Andris Pavenis ---
The warning should be in case when both
1) there is preferred standard conversion sequence for parameter of one
overloaded method
2) there is other user defined conversion sequences for one more more other
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104365
--- Comment #2 from Andris Pavenis ---
OK. Then warning would be nice.
Otherwise it is a trap when one chooses to add bool parameter at end after
string
parameter and other overloaded method with one more string parameter at end is
also presen
++
Assignee: unassigned at gcc dot gnu.org
Reporter: andris at gcc dot gnu.org
Target Milestone: ---
Created attachment 52336
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52336&action=edit
Test example
Overload ambiguity is not detected when 2 constructors with paramete
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95800
Andris Pavenis changed:
What|Removed |Added
CC||andris at gcc dot gnu.org
--- Comment
||andris at gcc dot gnu.org
Resolution|--- |FIXED
--- Comment #5 from Andris Pavenis ---
Fix committed long time ago:
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=acb1c4c499938d3bc00dacb1ca8179e4635f8a2b
SVN revision 202016 from 2013
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47093
Bug 47093 depends on bug 47099, which changed state.
Bug 47099 Summary: i686-pc-msdosdjgpp fails to build i386.o:
ASM_DECLARE_FUNCTION_NAME undefined
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47099
What|Removed
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86651
Andris Pavenis changed:
What|Removed |Added
CC||andris at gcc dot gnu.org
--- Comment
||andris at gcc dot gnu.org
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |andris at gcc dot
gnu.org
--- Comment #1 from Andris Pavenis ---
Fixed by r186759 soon after submitting of the bug
[andris@localhost gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71681
Andris Pavenis changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=41557
Andris Pavenis changed:
What|Removed |Added
CC||andris at gcc dot gnu.org
--- Comment
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71681
--- Comment #5 from Andris Pavenis ---
Author: andris
Date: Fri Oct 21 16:22:51 2016
New Revision: 241415
URL: https://gcc.gnu.org/viewcvs?rev=241415&root=gcc&view=rev
Log:
2016-10-21 Andris Pavenis
PR preprocessor/71681
* gc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71681
--- Comment #4 from Andris Pavenis ---
Author: andris
Date: Fri Oct 21 15:52:25 2016
New Revision: 241413
URL: https://gcc.gnu.org/viewcvs?rev=241413&root=gcc&view=rev
Log:
2016-10-21 Andris Pavenis
PR preprocessor/71681
* fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71681
--- Comment #3 from Andris Pavenis ---
Patch in mailing list
https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00395.html
20 matches
Mail list logo