Base Class initialization with brackets, calls move constructor. Compiles well with parenthesis.

Carlos Ferreira carlosmf.pt@gmail.com
Thu Nov 17 19:40:00 GMT 2016


Yes, braces. I'm sorry for the misspell.

Thank you for the explanation! I got very confused and didn't know
what was wrong.

On 17 November 2016 at 11:37, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 17 November 2016 at 01:51, Carlos Ferreira wrote:
>> If I use parenthesis instead of brackets ("O_Partial (x, y)"), the
>> compiler does not complain and everything goes well.
>
> Those are braces, not brackets.
>
>
>> My GCC version is 6.2.1 20160830 (GCC)
>>
>>
>> Can anyone explain me this issue and help me to understand it?
>
> It's a bug in GCC. It's fixed in the subversion trunk, but I'm not
> sure when or how it was fixed.



-- 

Carlos Miguel Ferreira
Researcher at Telecommunications Institute
Aveiro - Portugal
Work E-mail - cmf@av.it.pt
Skype & GTalk -> carlosmf.pt@gmail.com
LinkedIn -> http://www.linkedin.com/in/carlosmferreira



More information about the Gcc-help mailing list