[Bug c++/63217] template conversion operator returning const reference not used for conversion in some cases

2017-01-07 Thread vz at quantitativesystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63217 --- Comment #2 from Edward --- I can confirm the bug in version 6.3.0 freshly built: (found this bug researching for a similar bug I am reporting) Using built-in specs. COLLECT_GCC=/home/h/packages/gcc-6.3.0/bin/g++ COLLECT_LTO_WRAPPER=/home/h/

[Bug c++/79035] New: Rejects valid code due to failure to use user const conversion template operator

2017-01-09 Thread vz at quantitativesystems dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: vz at quantitativesystems dot com Target Milestone: --- In the following example, the conversion int value2 = cdc fails, tested in many versions of g++: struct

[Bug c++/63217] template conversion operator returning const reference not used for conversion in some cases

2017-01-09 Thread vz at quantitativesystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63217 --- Comment #3 from Edward --- Perhaps https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79035 is related