This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/32187] Complex __float128 is rejected
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2007 20:09:17 -0000
- Subject: [Bug target/32187] Complex __float128 is rejected
- References: <bug-32187-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from joseph at codesourcery dot com 2007-06-02 20:09 -------
Subject: Re: Complex __float128 is rejected
On Sat, 2 Jun 2007, ubizjak at gmail dot com wrote:
> Is this a parser problem? Compilation fails even for generic:
>
> --cut here--
> typedef float DFtype __attribute__((mode(DF)));
>
> __complex__ DFtype z;
Of course, 6.7.2 paragraph 2 does not include _Complex typedef-name in the
possible sets of type specifiers. __float128 is a built-in typedef, but
there probably is a case for allowing certain such typedefs to be treated
like keywords with regard to adding _Complex, signed or unsigned.
You should be able to use
typedef _Complex float TCtype __attribute__((mode(TC)));
or similar to access _Complex __float128 at present.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32187