Re: [Bug c++/31187] New: [4.2 regression] extern declaration of variable in anonymous namespace prevents use of its address as template argument

2007-03-16 Thread Gabriel Dos Reis
zak at transversal dot com [EMAIL PROTECTED] writes: | The following code, which compiles fine on gcc 4.1.2 and I believe is valid, | fails on an up-to-date checkout from the 4.2 branch: | | -- | class foo { }; | | namespace | { | extern foo foo1; |

[Bug c++/31187] New: [4.2 regression] extern declaration of variable in anonymous namespace prevents use of its address as template argument

2007-03-15 Thread zak at transversal dot com
The following code, which compiles fine on gcc 4.1.2 and I believe is valid, fails on an up-to-date checkout from the 4.2 branch: -- class foo { }; namespace { extern foo foo1; foo foo1; } template foo * class bar { }; bar foo1 bar1;