[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: qt 4.2 and 4.3 issue with gcc 3.3.6
From: Andreas Pakulat <apaku () gmx ! de>
Date: 2007-04-04 9:03:55
Message-ID: 20070404090355.GA371 () morpheus ! apaku ! dnsalias ! org
[Download RAW message or body]
On 03.04.07 23:27:54, Marc Espie wrote:
> OpenBSD still uses gcc 3.3.6. The foreach construct defined in QtCore/qglobal.h
> can barf on some usages. To wit, kdevelop 3.80.3 is unhappy with it:
>
> [ 7%] Building CXX object lib/sublime/CMakeFiles/sublime.dir/area.o
> /spare/ports/x11/kde4/velop/w-kdevelop-3.80.3/kdevelop-3.80.3/lib/sublime/areawalkers.h:51: \
> sorry, unimplemented: ` method_call_expr' not supported by dump_expr
> /spare/ports/x11/kde4/velop/w-kdevelop-3.80.3/kdevelop-3.80.3/lib/sublime/areawalkers.h:51: \
> sorry, unimplemented: ` method_call_expr' not supported by dump_expr
>
>
> Those messages are produced by g++, and can be tracked down to a fragment
> of gcc/cp/error.c:
> #define sorry_for_unsupported_tree(T) \
> sorry ("`%s' not supported by %s", tree_code_name[(int) TREE_CODE (T)], \
> __FUNCTION__)
>
>
> as far as fixing this goes, the following patch does it:
Does it also barf on Q_FOREACH macro instead of the foreach? I doubt so,
because IIRC Q_FOREACH is used a couple of times in kdelibs and/or
kdebase. If that is the case the "right" fix would be just to convert
all foreach usages into Q_FOREACH.
Andreas
--
You will have good luck and overcome many hardships.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic