Project

General

Profile

Bug #1696

Allow default arguments in group entry methods

Added by Nils Deppe 3 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
09/27/2017
Due date:
% Done:

0%


Description

I'm not sure this is a bug or a feature request since that depends on whether or not default arguments are supposed to work. What I've noticed is that default arguments for chare and chare array entry methods are supported (maybe not intentionally). However, when I have a group they break because of the "missing" default arguments to int npes, int *pes, etc. Here is the compiler error:

AlgorithmGroup.decl.h:385:129: error: missing
      default argument on parameter 'npes'
  ...const ReceiveData_t &impl_noname_2, bool enable_if_disabled = false, int npes, int *pes, const C...
                                                                              ^

Being able to have default arguments for any entry method would be really useful.

History

#1 Updated by Phil Miller 3 months ago

  • Target version set to 6.9.0

I'd call this a bug, indeed. Default arguments to entry methods are supported somewhat intentionally, and it's incorrect that they should be broken for group entry methods because of the support for 'list sends'.

#2 Updated by Nils Deppe 3 months ago

Alright, thanks for the clarification!

#3 Updated by Eric Bohm 2 months ago

  • Assignee set to Eric Mikida

Also available in: Atom PDF