Project

General

Profile

Bug #1696

Allow default arguments in group entry methods

Added by Nils Deppe almost 2 years ago. Updated over 1 year ago.

Status:
Merged
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 almost 2 years 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 almost 2 years ago

Alright, thanks for the clarification!

#3 Updated by Eric Bohm almost 2 years ago

  • Assignee set to Eric Mikida

#4 Updated by Eric Mikida over 1 year ago

  • Status changed from New to Implemented

#5 Updated by Sam White over 1 year ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF