[cfe-dev] error: cannot combine with previous 'type-name' declaration specifier
Edward O'Callaghan
eocallaghan at auroraux.org
Wed Jan 13 00:08:30 PST 2010
Hi Sascha,
Not sure here however on some systems you need to define wchar_t
builtin as part of the toolchain support, here is a *example* for
DragonflyBSD,
Index: lib/Basic/Targets.cpp
===================================================================
--- lib/Basic/Targets.cpp (revision 93303)
+++ lib/Basic/Targets.cpp (working copy)
@@ -189,7 +189,9 @@
}
public:
DragonFlyBSDTargetInfo(const std::string &triple)
- : OSTargetInfo<Target>(triple) {}
+ : OSTargetInfo<Target>(triple) {
+ this->WCharType = this->SignedLong; //Is this correct?
+ }
};
// FreeBSD Target
Maybe this will set you on the correct path to a workable solution,
Hope this is helpful in some way.
Cheers,
Edward.
2010/1/13 Sascha Wildner <swildner at erpicon.de>:
> Am 13.01.2010 05:16, schrieb Sascha Wildner:
>> Just one note: gcc obviously doesn't have a problem with this (typedef
>> wchar_t in C++). I've tried clang with -std=gnu++98 (gcc's default
>> setting) but it didn't make a difference. Not sure if that qualifies as
>> a "gcc compatibility bug" or so.
>
> I'm sorry, my testing was wrong there, g++ errors just the same.
>
> Sascha
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
--
--
Edward O'Callaghan
http://www.auroraux.org/
eocallaghan at auroraux dot org
---
() ascii ribbon campaign - against html e-mail
/\ - against microsoft attachments
More information about the cfe-dev
mailing list