Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[basic.life] Fix modal verb #854

Closed
wants to merge 1 commit into from
Closed

Conversation

FrankHB
Copy link
Contributor

@FrankHB FrankHB commented Jul 23, 2016

Change "must" to "shall" in normative text.

Change "must" to "shall" in normative text.
@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 25, 2016

@zygoloid: PTAL

@tkoeppe
Copy link
Contributor

tkoeppe commented Sep 27, 2016

I spoke with zygoloid, and the conclusion is two-fold: 1) is that we should rephrase this paragraph to say "If X, the behaviour is undefined", but 2) is that we should clarify the wording to make it clear that the following is not allowed:

struct A {
  const int n;
  ~A() { printf("%d", n");
};

void f() {
  A a = {4};
  a.~A();
  new (&a) A{5};
}

It should do so by being clear that a.~A() refers to the "original pointer" (and not a laundered version thereof). With that in place, the paragraph in question might become redundant.

We should perhaps file a CWG issue for this.

@zygoloid zygoloid added the cwg Issue must be reviewed by CWG. label Nov 11, 2016
@zygoloid
Copy link
Member

This has been converted to a core issue.

@zygoloid zygoloid closed this Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cwg Issue must be reviewed by CWG.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants