This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ Modules
- From: Nathan Sidwell <nathan at acm dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Jason Merrill <jason at redhat dot com>
- Date: Fri, 5 Jul 2019 14:30:01 -0400
- Subject: C++ Modules
Hi all,
I have achieved a major milestone in adding C++ Modules support to GCC.
Namely the iostream header can be built and used as a header unit.
#including <iostream> includes an awful lot of the STL, so this has
pushed a large swathe of C++ through the module machinery.
Because 'hello world' now works, it's good for people to play with.
some assembly is required, not least because it is not on trunk.
Beware, this is lots of new code, it is full of FIXMEs and it will break
on your code. I'll be working on cleaning it up next.
Refer to https://gcc.gnu.org/wiki/cxx-modules for details.
Testcase g++.dg/modules/iostream-1_{a.H,b.C} is the iostream example, FWIW.
nathan
--
Nathan Sidwell