From 7dff3249f7ef6f8675e0c0fcbe3109d50f4c1b1d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 Nov 2010 17:51:23 +0200 Subject: Add support for literal names (template-id, derived type declarator) --- odb/validator.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'odb/validator.cxx') diff --git a/odb/validator.cxx b/odb/validator.cxx index ee1c4dc..73c8f90 100644 --- a/odb/validator.cxx +++ b/odb/validator.cxx @@ -32,9 +32,6 @@ namespace if (type.fq_anonymous (b.hint ())) { - // Can be a template-id (which we should handle eventually) or an - // anonymous type in member declaration (e.g., struct {...} m_;). - // cerr << m.file () << ":" << m.line () << ":" << m.column () << ":" << " error: unnamed type in data member declaration" << endl; @@ -132,9 +129,9 @@ namespace if (!context::comp_value (b)) { - // @@ Should we use hint here? Need template printer. + // @@ Should we use hint here? // - string name (b.fq_anonymous () ? "" : b.fq_name ()); + string name (b.fq_name ()); cerr << c.file () << ":" << c.line () << ":" << c.column () << ":" << " error: base class '" << name << "' is not a " -- cgit v1.1