Enum with doubled entries

Hi,
I ran into an issue with the enum interface :
In C this is allowed :
     enum frame_mode_t {
         RAW_MODES = 128,
         MODE_BAYER = RAW_MODES,
     };

For HDF5 this would give me an
H5T_enum_insert(): value redefinition

Any opinions on this issue ?
Greetings
     Janosch

···

From my point of view this is a bug in HDF5.

--
  Dipl. Inf. Janosch Machowinski
  SAR- & Sicherheitsrobotik

  Universit�t Bremen
  FB 3 - Mathematik und Informatik
  AG Robotik
  Robert-Hooke-Stra�e 5
  28359 Bremen, Germany

  Tel.: +49 421 178 45-6614
  Zentrale: +49 421 178 45-6611
  Fax: +49 421 178 45-4150
  E-Mail: jmachowinski@informatik.uni-bremen.de

  Weitere Informationen: http://www.informatik.uni-bremen.de/robotik

Hi Janosch,

···

On Tue, Jan 22, 2013 at 10:11 AM, Janosch Machowinski < Janosch.Machowinski@dfki.de> wrote:

Hi,
I ran into an issue with the enum interface :
In C this is allowed :
    enum frame_mode_t {
        RAW_MODES = 128,
        MODE_BAYER = RAW_MODES,
    };

For HDF5 this would give me an
H5T_enum_insert(): value redefinition

From my point of view this is a bug in HDF5.
Any opinions on this issue ?

Enums have not been very precisely defined in HDF5. It's in my queue to
address that in the future. I'm not sure when that will happen since there
is no funding source for that work, but I'd like to get an RFC out to the
community as soon as I can find a spare moment.

Cheers,

Dana