2005-12-11から1日間の記事一覧
ランタイムの自殺プログラムが好評だったような気がするので、今度はコンパイラを殺すプログラムを書いてみる。 template< typename x=int > struct x{ x::x(){} }; void test(){ x<>x; }g++ だと、エラー。 declaration of `class x' shadows template parm…
ランタイムの自殺プログラムが好評だったような気がするので、今度はコンパイラを殺すプログラムを書いてみる。 template< typename x=int > struct x{ x::x(){} }; void test(){ x<>x; }g++ だと、エラー。 declaration of `class x' shadows template parm…