{"url":"https://yohhoy.hatenadiary.jp/entry/20150503/p1","provider_url":"https://hatena.blog","title":"anachronistic old-style base class initializer","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyohhoy.hatenadiary.jp%2Fentry%2F20150503%2Fp1\" title=\"anachronistic old-style base class initializer - yohhoy\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","version":"1.0","categories":["gcc","C++"],"width":"100%","height":"190","author_name":"yohhoy","blog_url":"https://yohhoy.hatenadiary.jp/","author_url":"https://blog.hatena.ne.jp/yohhoy/","type":"rich","published":"2015-05-03 00:00:00","blog_title":"yohhoy\u306e\u65e5\u8a18","provider_name":"Hatena Blog","description":"gcc(g++)\u304c\u51fa\u529b\u3059\u308b\u4e0d\u601d\u8b70\u306a\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u306b\u3064\u3044\u3066\u3002\u5f79\u306b\u7acb\u305f\u306a\u3044\u6614\u8a71\u3002\u672c\u8a18\u4e8b\u306e\u5185\u5bb9\u306fStack Overflow\u3067\u898b\u3064\u3051\u305f\u8cea\u554f\u3068\u56de\u7b54\u306b\u57fa\u3065\u304f\u3002\u4e0b\u8a18\u30b3\u30fc\u30c9\u306fC++\u8a00\u8a9e\u4ed5\u69d8\u306b\u306f\u9055\u53cd(ill-formed)\u3057\u3066\u3044\u308b\u304c\u3001gcc/-fpermissive\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u53ef\u80fd\u3002 struct B { B(int) {} }; struct D : B { D(int n) : (n) {} // ?? }; gcc 5.1.0\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\uff1a\uff08anachronistic\uff1d\u6642\u4ee3\u932f\u8aa4\u306e\uff09 In constructor 'D::D(int)': error: anachronistic old\u2026"}