Debian Codegraph @

gcc/testsuite/g++.dg/modules/pr99294_a.C

raw
1 // PR 99294, ICE with -fno-module-lazy on class completeness
2 // { dg-additional-options -fmodules-ts }
3
4 // The instantiation of the *definition* of basic_string is used in
5 // importers, *after* they have instantiated a declaration of it *and*
6 // created type variants.
7
8 module;
9
10 #include "pr99294.h"
11
12 export module foo;
13 // { dg-module-cmi foo }
14
15 export inline int greeter (string const &bob)
16 {
17 return sizeof (bob); // instantiates string
18 }