[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Problem with reinterpret_cast

From: Christian Jullien
Subject: Re: [Tinycc-devel] Problem with reinterpret_cast
Date: Sun, 10 Jan 2016 10:19:15 +0100

If you want to cast something in a program compiled by TCC (which is NOT a
C++ compiler as Basile said), you must use C style cast that works perfectly
well (including, but not recommended, if compiled by a C++ compiler which
*must* accept this style of cast).

X* x = ..;
Y* y = (X*)x;


-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Basile Starynkevitch
Sent: dimanche 10 janvier 2016 09:47
To: address@hidden
Subject: Re: [Tinycc-devel] Problem with reinterpret_cast

On 01/10/2016 09:40 AM, Ben Hutchinson wrote:
> It doesn't work in TCC.

Because tinycc is a C compiler, not a C++ one.

And it is not realistic to consider extending tinycc to a C++11 compiler.
Use GCC http://gcc.gnu.org/ or Clang http://clang.llvm.org/ if you need a
C++ compiler (and use C++11 at least, not some older standard)


Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359 8, rue de la
Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***

Tinycc-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]