This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Potential bug with g++ and OpenMP


On Monday 16 April 2007 20:02:33 Theodore Papadopoulo wrote:
> The piece of code attached to this mail does not compile with 4.3.0
> 20070113 (sorry this is rather old, but that's what I had available). The
> architecture (although not relevant IMHO)
> is i686-pc-linux-gnu.
>
> [ Even though this is not relevant here, a similar error happens with
> the redhat version gcc-4.1.1 (although the message is slightly
> different and more confusing). ]
>
> I get the following error message:
>
> -> g++ -fopenmp Test.C
>
> Test.C: In constructor âR<M>::R()â:
> Test.C:18: error: invalid use of incomplete type âstruct R<M>::R()::Bâ
> Test.C:9: error: declaration of âstruct R<M>::R()::Bâ

FWIW it gives the same error with 

gcc version 4.2.0 20070317 (prerelease) and 
gcc version 4.3.0 20070414 (experimental)

Regards,
ismail

-- 
Life is a game, and if you aren't in it to win,
what the heck are you still doing here?

-- Linus Torvalds (talking about open source development)

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]