Why does this snippet using uniform initialization compile with g++4.6 but not g++4.7?

前端 未结 4 1801
孤独总比滥情好
孤独总比滥情好 2021-02-04 23:44

Note that derived uses C++11 uniform initialization syntax to call the base class constructor.

class base
{
    protected:
        base()
        {}
};
         


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-05 00:22

    Paolo Carlini, a GCC/libstdc++ contributor, confirmed it is a bug/regression.

提交回复
热议问题