This is the mail archive of the gcc-bugs@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]
Other format: [Raw text]

[Bug c++/57887] nested non-type template parameters not declared in this scope


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57887

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |paolo.carlini at oracle dot com
   Target Milestone|---                         |4.9.0

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> ---
Seems doable: what is missing for "int X = N;" vs, eg, "void f(int = N);" is
the equivalent in cp_parser_class_specifier_1 of the wrapping

      /* Make sure that any template parameters are in scope.  */
      maybe_begin_member_template_processing (decl);
      /* Parse the default argument expressions.  */
      cp_parser_late_parsing_default_args (parser, decl);
      /* Remove any template parameters from the symbol table.  */
      maybe_end_member_template_processing ();

for the cp_parser_late_parsing_nsdmi call a few lines below.


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