Bug 492682 - Support for the C++ Concepts TS
Summary: Support for the C++ Concepts TS
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.8.1   Edit
Hardware: PC Linux
: P3 enhancement with 3 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-28 14:13 EDT by Matt Godbolt CLA
Modified: 2020-09-04 15:19 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Godbolt CLA 2016-04-28 14:13:25 EDT
Now that GCC6.1 is out and supports concepts (via -fconcepts) it would be totally amazing if Eclipse supported them too.

(ref: https://gcc.gnu.org/gcc-6/changes.html and http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4377.pdf )
Comment 1 Nathan Ridge CLA 2016-04-28 15:14:45 EDT
cc'ing Luke, who I believe is working on this.
Comment 2 Nathan Ridge CLA 2016-04-28 15:17:04 EDT
(Note that Concepts will not be part of C++17. It's currently shipping as a Technical Specification, and will later be merged into a future version of the C++ standard. I've adjusted the bug description accordingly.)
Comment 3 Matt Godbolt CLA 2016-04-28 15:18:58 EDT
Thanks for clarifying. I'm just a little overexcited that it's in GCC :)
Comment 4 Nathan Ridge CLA 2018-03-06 15:26:55 EST
Note that significant parts of the Concepts TS have been merged into the C++20 working draft, with some modifications (e.g. the "bool" has been dropped from "concept bool").

Lukas, I'm not sure what the status of your Concepts TS implementation is, and whether you still have plans to merge it into CDT.

If I were to start working on Concepts support in CDT (and I'm not promising I will :)), I would probably go straight for the C++20 version of the feature at this point, instead of the TS version, in part because I don't think compilers other than GCC (e.g. Clang) have plans to implement the TS version.
Comment 5 Nathan Ridge CLA 2018-03-06 16:01:56 EST
I also split out bug 532085 to track support for generic functions (functions that are not lambdas with 'auto' parameters). That's part of the Concepts TS but it's kind of a standalone feature, and it's supported by GCC as an extension even with -fconcepts.
Comment 6 Nathan Ridge CLA 2018-03-06 16:02:21 EST
(In reply to Nathan Ridge from comment #5)
> I also split out bug 532085 to track support for generic functions
> (functions that are not lambdas with 'auto' parameters). That's part of the
> Concepts TS but it's kind of a standalone feature, and it's supported by GCC
> as an extension even with -fconcepts.

I meant, "even without -fconcepts".