[Bug c++/24680] Invalid template code accepted
rnewman at compubrite dot com
gcc-bugzilla@gcc.gnu.org
Sat Nov 5 01:14:00 GMT 2005
------- Comment #2 from rnewman at compubrite dot com 2005-11-05 01:13 -------
(In reply to comment #1)
> Hmm, GCC seems to think "size ? 1 : d->size" is type-dependent in a way it is
> as D is type dependent.
I disagree. D is not type depenendent at all -- it is a struct containing
exactly one int field; it doesn't change in any way no matter what
instantiation args are used. Therefore, d->size is not type dependent either.
--
rnewman at compubrite dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rnewman at compubrite dot
| |com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24680
More information about the Gcc-bugs
mailing list