public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Bad Error Message
@ 1998-04-21 19:10 Andrew Bell
  0 siblings, 0 replies; only message in thread
From: Andrew Bell @ 1998-04-21 19:10 UTC (permalink / raw)
  To: egcs

The following from the ARM:

class X {
   int a;
   mem(int i = a); // error: nonstatic member 'a'
                   // used as default argument
};

Generates the following incorrect error message in egcs:

file:line no: request for member 'a' in static member function

The function is NOT a static member function.  It should say:

file:line no: bad request for nonstatic member 'a' in initialization

or something similar.

-- Andrew Bell                             /\         \|/  
                                          /  \  /\   --0--
andrew.bell@bigfoot.com                  /    \/  \   /|\
MCI       (719) 535-4932                /          \/\
Colo. Springs, CO  80919               /              \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-04-21 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-21 19:10 Bad Error Message Andrew Bell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).