Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#3619 closed Bugs (fixed)

MPL error when using planar images in GCC 4.4

Reported by: Robert Fendt <rmfendt@…> Owned by: Hailin Jin
Milestone: Boost 1.41.0 Component: gil USE GITHUB
Version: Boost 1.40.0 Severity: Showstopper
Keywords: GIL, MPL, GCC 4.4 Cc:

Description

Trying to create an instance of e.g. rgb8_planar_image_t when using GCC 4.4, the following template error is produced:

error: ‘template<class Sequence, long int N> struct boost::mpl::at_c’ is not a function

The test code is very minimal, just trying to create an object of type rgb8_planar_image_t; the problem actually occurs with all planar types.

Reproduced in Boost 1.38, 1.40 and 1.41beta1; GCC version is 4.4.1-4ubuntu8 on Kubuntu 'Karmic'.

Attachments (2)

error.txt (12.7 KB ) - added by Robert Fendt <rmfendt@…> 13 years ago.
Complete error log
main.cpp (133 bytes ) - added by Robert Fendt <rmfendt@…> 13 years ago.
Test case

Download all attachments as: .zip

Change History (8)

by Robert Fendt <rmfendt@…>, 13 years ago

Attachment: error.txt added

Complete error log

by Robert Fendt <rmfendt@…>, 13 years ago

Attachment: main.cpp added

Test case

comment:1 by Robert Fendt <rmfendt@…>, 13 years ago

Note: the problem does not seem to occur when using GCC 4.3, though I have not tested that thoroughly, yet.

comment:2 by rwebb <richard.webb@…>, 13 years ago

I think this might be a dup of #3041 (fixed on Trunk, but not yet merged to release).

in reply to:  2 comment:3 by anonymous, 13 years ago

Replying to rwebb <richard.webb@…>:

I think this might be a dup of #3041 (fixed on Trunk, but not yet merged to release).

I think you are right. In any case I can confirm that the problem seems to be non-existent in current SVN trunk (2009-11-14). Thanks for the hint.

comment:4 by chhenning, 13 years ago

(In [58777]) Added gil:: namespace to all at_c calls. This seems necessary for current gcc ( 4.4 and more ) compilers. See #3041 and #3619.

comment:5 by chhenning@…, 13 years ago

Resolution: fixed
Status: newclosed

I have tried to reproduce the problem with the current trunk ( 01/06/10 ) and release branch using MinGW 5.1.6 ( gcc 4.4 ). The problem could not be reproduced.

comment:6 by chhenning, 12 years ago

(In [65907]) Added gil:: namespace to all at_c calls. This seems necessary for current gcc ( 4.4 and more ) compilers. See #3041 and #3619.

Note: See TracTickets for help on using tickets.