From 7d75140ee8932040caa07fa6b62e1cadb4764276 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Thu, 22 May 2008 22:58:28 +0000 Subject: [PATCH] Added workaround for "Internal compiler error" with old gcc(-2.8). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/debug.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/wx/debug.h b/include/wx/debug.h index fc12f49f25..86856c59d3 100644 --- a/include/wx/debug.h +++ b/include/wx/debug.h @@ -210,7 +210,10 @@ wxFAIL_COND_MSG(#cond, msg); \ op; \ } \ - struct wxDummyCheckStruct /* just to force a semicolon */ + typedef int wxDummyCheckInt /* just to force a semicolon */ + /* NB: old gcc versions (e.g. 2.8) give an internal compiler error */ + /* on a simple forward declaration, when used in a template */ + /* function, so rather use a dummy typedef which does work... */ #endif /* special form of wxCHECK2: as wxCHECK, but for use in void functions */