From 24b3b85e98c3658d8f038aa0eab334ebc25d5ed7 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 3 Jun 2015 19:50:52 +0200 Subject: [PATCH] Try and work around weird GCC 4.6 bug with instantiating PTA_uchar --- panda/src/express/pta_uchar.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/express/pta_uchar.h b/panda/src/express/pta_uchar.h index 40cc9763fe..1ba4dd4497 100644 --- a/panda/src/express/pta_uchar.h +++ b/panda/src/express/pta_uchar.h @@ -29,10 +29,14 @@ // rather than defining the pta again. //////////////////////////////////////////////////////////////////// +#if !defined(__clang__) && __GNUC__ == 4 && __GNUC_MINOR__ < 7 +// GCC 4.6 has a weird bug related to this type. +#else EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToBase >) EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArrayBase) EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, PointerToArray) EXPORT_TEMPLATE_CLASS(EXPCL_PANDAEXPRESS, EXPTP_PANDAEXPRESS, ConstPointerToArray) +#endif typedef PointerToArray PTA_uchar; typedef ConstPointerToArray CPTA_uchar;