Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Should rejectC auto *f() when deduced return type doesn't satisfyC #53911

Closed
Labels
@Quuxplusone

Description

@Quuxplusone

Similar to#49188, but whereas in that issue the problem was anauto return type being deduced tovoid, here the problem is theauto in the return type being modified by a pointer qualification. For example:https://godbolt.org/z/T8j3j7j58

namespace Bug {  template<class T> concept C = false;  C auto *f() {    return (int*)nullptr;  }}

This should be a hard error, becauseauto deduces toint andC<int> is false. But instead, Clang silently accepts!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp