This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug report...


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]