------- Comment #1 from d dot bonekaemper at rtsgroup dot net  2005-12-20 12:28 
-------
(Sorry, pressed return to early...)

g++ accepts the following code, which contains a typedef that's supposed to act
as a static assert. 
-------------------------------------------------------------------------------
template<int N>
struct Test
{
    Test()
    {
        typedef struct StaticAssert {unsigned condition : (N); } XXX;
    }
};

int
main()
{
    Test<0> T;
}
-------------------------------------------------------------------------------


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25503

Reply via email to