This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bug report...
- To: oliva at dcc dot unicamp dot br (Alexandre Oliva), egcs at cygnus dot com
- Subject: Re: bug report...
- From: Jason Merrill <jason at cygnus dot com>
- Date: 06 Jun 1998 18:06:36 -0700
- References: <Pine.LNX.3.96.980606003134.23023B-100000@earth.terran.org> <orzpfqh0zr.fsf.cygnus.egcs@zecarneiro.lsd.dcc.unicamp.br>
>>>>> Alexandre Oliva <oliva@dcc.unicamp.br> writes:
> B James Phillippe <bryan@terran.org> writes:
>> On 5 Jun 1998, Alexandre Oliva wrote:
>>> using local classes as template arguments is *not* ANSI/ISO C++, it
>>> is an extension provided by gcc and egcs.
>> I'm sorry, I missed the first part of this thread. Can you provide a small
>> snippet of code that illustrates this?
> void foo() { struct s {}; vector<s> a; }
Except that egcs DOES give a diagnostic for this testcase. Even after you
add the #include <vector>.
wa.C:3:type `foo()::s' composed from a local class is not a valid template-argument
Jason