[Bug c++/13696] New: [3.4] enum not useable as array index?
marcus at jet dot franken dot de
gcc-bugzilla@gcc.gnu.org
Thu Jan 15 10:50:00 GMT 2004
Compiling the attached testcase with:
g++ fl_color.ii
gives:
fl_color.ii:12: error: conversion from `struct s*' to `enum e'
It should probably work, if I refactor it to:
unsigned long l = map[i][j].l;
x(&l);
it works.
--
Summary: [3.4] enum not useable as array index?
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: marcus at jet dot franken dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-suse-linux
GCC host triplet: x86_64-suse-linux
GCC target triplet: x86_64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13696
More information about the Gcc-bugs
mailing list