[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: Bug with function attributes in class scope.
From: Paul Derbyshire <pderbysh () usa ! net>
Date: 1999-02-28 1:43:12
[Download RAW message or body]
template <class T, class tag>
struct __math_traits_base {
static bool specialized (void) throw () __attribute__ ((__const__));
static bool specialized (void) throw () { return false; }
};
causes an error on the definition line claiming the function is already
defined.
template <class T, class tag>
struct __math_traits_base {
static bool specialized (void) throw () __attribute__ ((__const__)) {
return false; }
};
causes a "parse error before {" on the function definition line.
template <class T, class tag>
struct __math_traits_base {
static bool specialized (void) throw () { return false; } __attribute__
((__const__));
};
causes a very strange error message for the same line.
template <class T, class tag>
struct __math_traits_base {
static bool specialized (void) __attribute__ ((__const__)) throw () {
return false; }
};
causes a "parse error before 'throw'".
Since egcs seems to puke no matter where I put the attribute, it's not just
being picky about where I put it. It's a bug.
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net
_____________________ ____|________ Paul Derbyshire pderbysh@usa.net
Programmer & Humanist|ICQ: 10423848|
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic