annotate gcc/cp/NEWS @ 136:4627f235cf2a

fix c-next example
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:11:56 +0900
parents 84e7813d76e9
children 1830386684a0
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 *** Changes in GCC 3.4:
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 * Changes in GCC 3.4 are described in 'gcc-3.4/changes.html'
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 *** Changes in GCC 3.3:
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 * The "new X = 3" extension has been removed; you must now use "new X(3)".
kono
parents:
diff changeset
8
kono
parents:
diff changeset
9 * G++ no longer allows in-class initializations of static data members
kono
parents:
diff changeset
10 that do not have arithmetic or enumeration type. For example:
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 struct S {
kono
parents:
diff changeset
13 static const char* const p = "abc";
kono
parents:
diff changeset
14 };
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 is no longer accepted.
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 Use the standards-conformant form:
kono
parents:
diff changeset
19
kono
parents:
diff changeset
20 struct S {
kono
parents:
diff changeset
21 static const char* const p;
kono
parents:
diff changeset
22 };
kono
parents:
diff changeset
23
kono
parents:
diff changeset
24 const char* const S::p = "abc";
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 instead.
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 (ISO C++ is even stricter; it does not allow in-class
kono
parents:
diff changeset
29 initializations of floating-point types.)
kono
parents:
diff changeset
30
kono
parents:
diff changeset
31 *** Changes in GCC 3.1:
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 * -fhonor-std and -fno-honor-std have been removed. -fno-honor-std was
kono
parents:
diff changeset
34 a workaround to allow std compliant code to work with the non-std
kono
parents:
diff changeset
35 compliant libstdc++-v2. libstdc++-v3 is std compliant.
kono
parents:
diff changeset
36
kono
parents:
diff changeset
37 * The C++ ABI has been fixed so that `void (A::*)() const' is mangled as
kono
parents:
diff changeset
38 "M1AKFvvE", rather than "MK1AFvvE" as before. This change only affects
kono
parents:
diff changeset
39 pointer to cv-qualified member function types.
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 * The C++ ABI has been changed to correctly handle this code:
kono
parents:
diff changeset
42
kono
parents:
diff changeset
43 struct A {
kono
parents:
diff changeset
44 void operator delete[] (void *, size_t);
kono
parents:
diff changeset
45 };
kono
parents:
diff changeset
46
kono
parents:
diff changeset
47 struct B : public A {
kono
parents:
diff changeset
48 };
kono
parents:
diff changeset
49
kono
parents:
diff changeset
50 new B[10];
kono
parents:
diff changeset
51
kono
parents:
diff changeset
52 The amount of storage allocated for the array will be greater than
kono
parents:
diff changeset
53 it was in 3.0, in order to store the number of elements in the
kono
parents:
diff changeset
54 array, so that the correct size can be passed to `operator delete[]'
kono
parents:
diff changeset
55 when the array is deleted. Previously, the value passed to
kono
parents:
diff changeset
56 `operator delete[]' was unpredictable.
kono
parents:
diff changeset
57
kono
parents:
diff changeset
58 This change will only affect code that declares a two-argument
kono
parents:
diff changeset
59 `operator delete[]' with a second parameter of type `size_t'
kono
parents:
diff changeset
60 in a base class, and does not override that definition in a
kono
parents:
diff changeset
61 derived class.
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 * The C++ ABI has been changed so that:
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 struct A {
kono
parents:
diff changeset
66 void operator delete[] (void *, size_t);
kono
parents:
diff changeset
67 void operator delete[] (void *);
kono
parents:
diff changeset
68 };
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 does not cause unnecessary storage to be allocated when an array of
kono
parents:
diff changeset
71 `A' objects is allocated.
kono
parents:
diff changeset
72
kono
parents:
diff changeset
73 This change will only affect code that declares both of these
kono
parents:
diff changeset
74 forms of `operator delete[]', and declared the two-argument form
kono
parents:
diff changeset
75 before the one-argument form.
kono
parents:
diff changeset
76
kono
parents:
diff changeset
77 * The C++ ABI has been changed so that when a parameter is passed by value,
kono
parents:
diff changeset
78 any cleanup for that parameter is performed in the caller, as specified
kono
parents:
diff changeset
79 by the ia64 C++ ABI, rather than the called function as before. As a
kono
parents:
diff changeset
80 result, classes with a non-trivial destructor but a trivial copy
kono
parents:
diff changeset
81 constructor will be passed and returned by invisible reference, rather
kono
parents:
diff changeset
82 than by bitwise copy as before.
kono
parents:
diff changeset
83
kono
parents:
diff changeset
84 * G++ now supports the "named return value optimization": for code like
kono
parents:
diff changeset
85
kono
parents:
diff changeset
86 A f () {
kono
parents:
diff changeset
87 A a;
kono
parents:
diff changeset
88 ...
kono
parents:
diff changeset
89 return a;
kono
parents:
diff changeset
90 }
kono
parents:
diff changeset
91
kono
parents:
diff changeset
92 G++ will allocate 'a' in the return value slot, so that the return
kono
parents:
diff changeset
93 becomes a no-op. For this to work, all return statements in the function
kono
parents:
diff changeset
94 must return the same variable.
kono
parents:
diff changeset
95
kono
parents:
diff changeset
96 *** Changes in GCC 3.0:
kono
parents:
diff changeset
97
kono
parents:
diff changeset
98 * Support for guiding declarations has been removed.
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 * G++ now supports importing member functions from base classes with a
kono
parents:
diff changeset
101 using-declaration.
kono
parents:
diff changeset
102
kono
parents:
diff changeset
103 * G++ now enforces access control for nested types.
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 * In some obscure cases, functions with the same type could have the
kono
parents:
diff changeset
106 same mangled name. This bug caused compiler crashes, link-time clashes,
kono
parents:
diff changeset
107 and debugger crashes. Fixing this bug required breaking ABI
kono
parents:
diff changeset
108 compatibility for the functions involved. The functions in questions
kono
parents:
diff changeset
109 are those whose types involve non-type template arguments whose
kono
parents:
diff changeset
110 mangled representations require more than one digit.
kono
parents:
diff changeset
111
kono
parents:
diff changeset
112 * Support for assignment to `this' has been removed. This idiom
kono
parents:
diff changeset
113 was used in the very early days of C++, before users were allowed
kono
parents:
diff changeset
114 to overload `operator new'; it is no longer allowed by the C++
kono
parents:
diff changeset
115 standard.
kono
parents:
diff changeset
116
kono
parents:
diff changeset
117 * Support for signatures, a G++ extension, have been removed.
kono
parents:
diff changeset
118
kono
parents:
diff changeset
119 * Certain invalid conversions that were previously accepted will now
kono
parents:
diff changeset
120 be rejected. For example, assigning function pointers of one type
kono
parents:
diff changeset
121 to function pointers of another type now requires a cast, whereas
kono
parents:
diff changeset
122 previously g++ would sometimes accept the code even without the
kono
parents:
diff changeset
123 cast.
kono
parents:
diff changeset
124
kono
parents:
diff changeset
125 * G++ previously allowed `sizeof (X::Y)' where Y was a non-static
kono
parents:
diff changeset
126 member of X, even if the `sizeof' expression occurred outside
kono
parents:
diff changeset
127 of a non-static member function of X (or one of its derived classes,
kono
parents:
diff changeset
128 or a member-initializer for X or one of its derived classes.) This
kono
parents:
diff changeset
129 extension has been removed.
kono
parents:
diff changeset
130
kono
parents:
diff changeset
131 * G++ no longer allows you to overload the conditional operator (i.e.,
kono
parents:
diff changeset
132 the `?:' operator.)
kono
parents:
diff changeset
133
kono
parents:
diff changeset
134 * The "named return value" extension:
kono
parents:
diff changeset
135
kono
parents:
diff changeset
136 int f () return r { r = 3; }
kono
parents:
diff changeset
137
kono
parents:
diff changeset
138 has been deprecated, and will be removed in a future version of G++.
kono
parents:
diff changeset
139
kono
parents:
diff changeset
140 *** Changes in GCC 2.95:
kono
parents:
diff changeset
141
kono
parents:
diff changeset
142 * Messages about non-conformant code that we can still handle ("pedwarns")
kono
parents:
diff changeset
143 are now errors by default, rather than warnings. This can be reverted
kono
parents:
diff changeset
144 with -fpermissive, and is overridden by -pedantic or -pedantic-errors.
kono
parents:
diff changeset
145
kono
parents:
diff changeset
146 * String constants are now of type `const char[n]', rather than `char[n]'.
kono
parents:
diff changeset
147 This can be reverted with -fno-const-strings.
kono
parents:
diff changeset
148
kono
parents:
diff changeset
149 * References to functions are now supported.
kono
parents:
diff changeset
150
kono
parents:
diff changeset
151 * Lookup of class members during class definition now works in all cases.
kono
parents:
diff changeset
152
kono
parents:
diff changeset
153 * In overload resolution, type conversion operators are now properly
kono
parents:
diff changeset
154 treated as always coming from the most derived class.
kono
parents:
diff changeset
155
kono
parents:
diff changeset
156 * C9x-style restricted pointers are supported, using the `__restrict'
kono
parents:
diff changeset
157 keyword.
kono
parents:
diff changeset
158
kono
parents:
diff changeset
159 * You can now use -fno-implicit-inline-templates to suppress writing out
kono
parents:
diff changeset
160 implicit instantiations of inline templates. Normally we do write them
kono
parents:
diff changeset
161 out, even with -fno-implicit-templates, so that optimization doesn't
kono
parents:
diff changeset
162 affect which instantiations are needed.
kono
parents:
diff changeset
163
kono
parents:
diff changeset
164 * -fstrict-prototype now also suppresses implicit declarations.
kono
parents:
diff changeset
165
kono
parents:
diff changeset
166 * Many obsolete options have been removed: -fall-virtual, -fmemoize-lookups,
kono
parents:
diff changeset
167 -fsave-memoized, +e?, -fenum-int-equivalence, -fno-nonnull-objects.
kono
parents:
diff changeset
168
kono
parents:
diff changeset
169 * Unused virtual functions can be discarded on some targets by specifying
kono
parents:
diff changeset
170 -ffunction-sections -fvtable-gc to the compiler and --gc-sections to the
kono
parents:
diff changeset
171 linker. Unfortunately, this only works on GNU/Linux if you're linking
kono
parents:
diff changeset
172 statically.
kono
parents:
diff changeset
173
kono
parents:
diff changeset
174 * Lots of bugs stomped.
kono
parents:
diff changeset
175
kono
parents:
diff changeset
176 *** Changes in EGCS 1.1:
kono
parents:
diff changeset
177
kono
parents:
diff changeset
178 * Namespaces are fully supported. The library has not yet been converted
kono
parents:
diff changeset
179 to use namespace std, however, and the old std-faking code is still on by
kono
parents:
diff changeset
180 default. To turn it off, you can use -fhonor-std.
kono
parents:
diff changeset
181
kono
parents:
diff changeset
182 * Massive template improvements:
kono
parents:
diff changeset
183 + member template classes are supported.
kono
parents:
diff changeset
184 + template friends are supported.
kono
parents:
diff changeset
185 + template template parameters are supported.
kono
parents:
diff changeset
186 + local classes in templates are supported.
kono
parents:
diff changeset
187 + lots of bugs fixed.
kono
parents:
diff changeset
188
kono
parents:
diff changeset
189 * operator new now throws bad_alloc where appropriate.
kono
parents:
diff changeset
190
kono
parents:
diff changeset
191 * Exception handling is now thread safe, and supports nested exceptions and
kono
parents:
diff changeset
192 placement delete. Exception handling overhead on x86 is much lower with
kono
parents:
diff changeset
193 GNU as 2.9.
kono
parents:
diff changeset
194
kono
parents:
diff changeset
195 * protected virtual inheritance is now supported.
kono
parents:
diff changeset
196
kono
parents:
diff changeset
197 * Loops are optimized better; we now move the test to the end in most
kono
parents:
diff changeset
198 cases, like the C frontend does.
kono
parents:
diff changeset
199
kono
parents:
diff changeset
200 * For class D derived from B which has a member 'int i', &D::i is now of
kono
parents:
diff changeset
201 type 'int B::*' instead of 'int D::*'.
kono
parents:
diff changeset
202
kono
parents:
diff changeset
203 * An _experimental_ new ABI for g++ can be turned on with -fnew-abi. The
kono
parents:
diff changeset
204 current features of this are more efficient allocation of base classes
kono
parents:
diff changeset
205 (including the empty base optimization), and more compact mangling of C++
kono
parents:
diff changeset
206 symbol names (which can be turned on separately with -fsquangle). This
kono
parents:
diff changeset
207 ABI is subject to change without notice, so don't use it for anything
kono
parents:
diff changeset
208 that you don't want to rebuild with every release of the compiler.
kono
parents:
diff changeset
209
kono
parents:
diff changeset
210 As with all ABI-changing flags, this flag is for experts only, as all
kono
parents:
diff changeset
211 code (including the library code in libgcc and libstdc++) must be
kono
parents:
diff changeset
212 compiled with the same ABI.
kono
parents:
diff changeset
213
kono
parents:
diff changeset
214 *** Changes in EGCS 1.0:
kono
parents:
diff changeset
215
kono
parents:
diff changeset
216 * A public review copy of the December 1996 Draft of the ISO/ANSI C++
kono
parents:
diff changeset
217 standard is now available. See
kono
parents:
diff changeset
218
kono
parents:
diff changeset
219 http://www.cygnus.com/misc/wp/
kono
parents:
diff changeset
220
kono
parents:
diff changeset
221 for more information.
kono
parents:
diff changeset
222
kono
parents:
diff changeset
223 * g++ now uses a new implementation of templates. The basic idea is that
kono
parents:
diff changeset
224 now templates are minimally parsed when seen and then expanded later.
kono
parents:
diff changeset
225 This allows conformant early name binding and instantiation controls,
kono
parents:
diff changeset
226 since instantiations no longer have to go through the parser.
kono
parents:
diff changeset
227
kono
parents:
diff changeset
228 What you get:
kono
parents:
diff changeset
229
kono
parents:
diff changeset
230 + Inlining of template functions works without any extra effort or
kono
parents:
diff changeset
231 modifications.
kono
parents:
diff changeset
232 + Instantiations of class templates and methods defined in the class
kono
parents:
diff changeset
233 body are deferred until they are actually needed (unless
kono
parents:
diff changeset
234 -fexternal-templates is specified).
kono
parents:
diff changeset
235 + Nested types in class templates work.
kono
parents:
diff changeset
236 + Static data member templates work.
kono
parents:
diff changeset
237 + Member function templates are now supported.
kono
parents:
diff changeset
238 + Partial specialization of class templates is now supported.
kono
parents:
diff changeset
239 + Explicit specification of template parameters to function templates
kono
parents:
diff changeset
240 is now supported.
kono
parents:
diff changeset
241
kono
parents:
diff changeset
242 Things you may need to fix in your code:
kono
parents:
diff changeset
243
kono
parents:
diff changeset
244 + Syntax errors in templates that are never instantiated will now be
kono
parents:
diff changeset
245 diagnosed.
kono
parents:
diff changeset
246 + Types and class templates used in templates must be declared
kono
parents:
diff changeset
247 first, or the compiler will assume they are not types, and fail.
kono
parents:
diff changeset
248 + Similarly, nested types of template type parameters must be tagged
kono
parents:
diff changeset
249 with the 'typename' keyword, except in base lists. In many cases,
kono
parents:
diff changeset
250 but not all, the compiler will tell you where you need to add
kono
parents:
diff changeset
251 'typename'. For more information, see
kono
parents:
diff changeset
252
kono
parents:
diff changeset
253 http://www.cygnus.com/misc/wp/dec96pub/template.html#temp.res
kono
parents:
diff changeset
254
kono
parents:
diff changeset
255 + Guiding declarations are no longer supported. Function declarations,
kono
parents:
diff changeset
256 including friend declarations, do not refer to template instantiations.
kono
parents:
diff changeset
257 You can restore the old behavior with -fguiding-decls until you fix
kono
parents:
diff changeset
258 your code.
kono
parents:
diff changeset
259
kono
parents:
diff changeset
260 Other features:
kono
parents:
diff changeset
261
kono
parents:
diff changeset
262 + Default function arguments in templates will not be evaluated (or
kono
parents:
diff changeset
263 checked for semantic validity) unless they are needed. Default
kono
parents:
diff changeset
264 arguments in class bodies will not be parsed until the class
kono
parents:
diff changeset
265 definition is complete.
kono
parents:
diff changeset
266 + The -ftemplate-depth-NN flag can be used to increase the maximum
kono
parents:
diff changeset
267 recursive template instantiation depth, which defaults to 17. If you
kono
parents:
diff changeset
268 need to use this flag, the compiler will tell you.
kono
parents:
diff changeset
269 + Explicit instantiation of template constructors and destructors is
kono
parents:
diff changeset
270 now supported. For instance:
kono
parents:
diff changeset
271
kono
parents:
diff changeset
272 template A<int>::A(const A&);
kono
parents:
diff changeset
273
kono
parents:
diff changeset
274 Still not supported:
kono
parents:
diff changeset
275
kono
parents:
diff changeset
276 + Member class templates.
kono
parents:
diff changeset
277 + Template friends.
kono
parents:
diff changeset
278
kono
parents:
diff changeset
279 * Exception handling support has been significantly improved and is on by
kono
parents:
diff changeset
280 default. The compiler supports two mechanisms for walking back up the
kono
parents:
diff changeset
281 call stack; one relies on static information about how registers are
kono
parents:
diff changeset
282 saved, and causes no runtime overhead for code that does not throw
kono
parents:
diff changeset
283 exceptions. The other mechanism uses setjmp and longjmp equivalents, and
kono
parents:
diff changeset
284 can result in quite a bit of runtime overhead. You can determine which
kono
parents:
diff changeset
285 mechanism is the default for your target by compiling a testcase that
kono
parents:
diff changeset
286 uses exceptions and doing an 'nm' on the object file; if it uses __throw,
kono
parents:
diff changeset
287 it's using the first mechanism. If it uses __sjthrow, it's using the
kono
parents:
diff changeset
288 second.
kono
parents:
diff changeset
289
kono
parents:
diff changeset
290 You can turn EH support off with -fno-exceptions.
kono
parents:
diff changeset
291
kono
parents:
diff changeset
292 * RTTI support has been rewritten to work properly and is now on by default.
kono
parents:
diff changeset
293 This means code that uses virtual functions will have a modest space
kono
parents:
diff changeset
294 overhead. You can use the -fno-rtti flag to disable RTTI support.
kono
parents:
diff changeset
295
kono
parents:
diff changeset
296 * On ELF systems, duplicate copies of symbols with 'initialized common'
kono
parents:
diff changeset
297 linkage (such as template instantiations, vtables, and extern inlines)
kono
parents:
diff changeset
298 will now be discarded by the GNU linker, so you don't need to use -frepo.
kono
parents:
diff changeset
299 This support requires GNU ld from binutils 2.8 or later.
kono
parents:
diff changeset
300
kono
parents:
diff changeset
301 * The overload resolution code has been rewritten to conform to the latest
kono
parents:
diff changeset
302 C++ Working Paper. Built-in operators are now considered as candidates
kono
parents:
diff changeset
303 in operator overload resolution. Function template overloading chooses
kono
parents:
diff changeset
304 the more specialized template, and handles base classes in type deduction
kono
parents:
diff changeset
305 and guiding declarations properly. In this release the old code can
kono
parents:
diff changeset
306 still be selected with -fno-ansi-overloading, although this is not
kono
parents:
diff changeset
307 supported and will be removed in a future release.
kono
parents:
diff changeset
308
kono
parents:
diff changeset
309 * Standard usage syntax for the std namespace is supported; std is treated
kono
parents:
diff changeset
310 as an alias for global scope. General namespaces are still not supported.
kono
parents:
diff changeset
311
kono
parents:
diff changeset
312 * New flags:
kono
parents:
diff changeset
313
kono
parents:
diff changeset
314 + New warning -Wno-pmf-conversion (don't warn about
kono
parents:
diff changeset
315 converting from a bound member function pointer to function
kono
parents:
diff changeset
316 pointer).
kono
parents:
diff changeset
317
kono
parents:
diff changeset
318 + A flag -Weffc++ has been added for violations of some of the style
kono
parents:
diff changeset
319 guidelines in Scott Meyers' _Effective C++_ books.
kono
parents:
diff changeset
320
kono
parents:
diff changeset
321 + -Woverloaded-virtual now warns if a virtual function in a base
kono
parents:
diff changeset
322 class is hidden in a derived class, rather than warning about
kono
parents:
diff changeset
323 virtual functions being overloaded (even if all of the inherited
kono
parents:
diff changeset
324 signatures are overridden) as it did before.
kono
parents:
diff changeset
325
kono
parents:
diff changeset
326 + -Wall no longer implies -W. The new warning flag, -Wsign-compare,
kono
parents:
diff changeset
327 included in -Wall, warns about dangerous comparisons of signed and
kono
parents:
diff changeset
328 unsigned values. Only the flag is new; it was previously part of
kono
parents:
diff changeset
329 -W.
kono
parents:
diff changeset
330
kono
parents:
diff changeset
331 + The new flag, -fno-weak, disables the use of weak symbols.
kono
parents:
diff changeset
332
kono
parents:
diff changeset
333 * Synthesized methods are now emitted in any translation units that need
kono
parents:
diff changeset
334 an out-of-line copy. They are no longer affected by #pragma interface
kono
parents:
diff changeset
335 or #pragma implementation.
kono
parents:
diff changeset
336
kono
parents:
diff changeset
337 * __FUNCTION__ and __PRETTY_FUNCTION__ are now treated as variables by the
kono
parents:
diff changeset
338 parser; previously they were treated as string constants. So code like
kono
parents:
diff changeset
339 `printf (__FUNCTION__ ": foo")' must be rewritten to
kono
parents:
diff changeset
340 `printf ("%s: foo", __FUNCTION__)'. This is necessary for templates.
kono
parents:
diff changeset
341
kono
parents:
diff changeset
342 * local static variables in extern inline functions will be shared between
kono
parents:
diff changeset
343 translation units.
kono
parents:
diff changeset
344
kono
parents:
diff changeset
345 * -fvtable-thunks is supported for all targets, and is the default for
kono
parents:
diff changeset
346 GNU/Linux with glibc 2.x (also called libc 6.x).
kono
parents:
diff changeset
347
kono
parents:
diff changeset
348 * bool is now always the same size as another built-in type. Previously,
kono
parents:
diff changeset
349 a 64-bit RISC target using a 32-bit ABI would have 32-bit pointers and a
kono
parents:
diff changeset
350 64-bit bool. This should only affect Irix 6, which was not supported in
kono
parents:
diff changeset
351 2.7.2.
kono
parents:
diff changeset
352
kono
parents:
diff changeset
353 * new (nothrow) is now supported.
kono
parents:
diff changeset
354
kono
parents:
diff changeset
355 * Synthesized destructors are no longer made virtual just because the class
kono
parents:
diff changeset
356 already has virtual functions, only if they override a virtual destructor
kono
parents:
diff changeset
357 in a base class. The compiler will warn if this affects your code.
kono
parents:
diff changeset
358
kono
parents:
diff changeset
359 * The g++ driver now only links against libstdc++, not libg++; it is
kono
parents:
diff changeset
360 functionally identical to the c++ driver.
kono
parents:
diff changeset
361
kono
parents:
diff changeset
362 * (void *)0 is no longer considered a null pointer constant; NULL in
kono
parents:
diff changeset
363 <stddef.h> is now defined as __null, a magic constant of type (void *)
kono
parents:
diff changeset
364 normally, or (size_t) with -ansi.
kono
parents:
diff changeset
365
kono
parents:
diff changeset
366 * The name of a class is now implicitly declared in its own scope; A::A
kono
parents:
diff changeset
367 refers to A.
kono
parents:
diff changeset
368
kono
parents:
diff changeset
369 * Local classes are now supported.
kono
parents:
diff changeset
370
kono
parents:
diff changeset
371 * __attribute__ can now be attached to types as well as declarations.
kono
parents:
diff changeset
372
kono
parents:
diff changeset
373 * The compiler no longer emits a warning if an ellipsis is used as a
kono
parents:
diff changeset
374 function's argument list.
kono
parents:
diff changeset
375
kono
parents:
diff changeset
376 * Definition of nested types outside of their containing class is now
kono
parents:
diff changeset
377 supported. For instance:
kono
parents:
diff changeset
378
kono
parents:
diff changeset
379 struct A {
kono
parents:
diff changeset
380 struct B;
kono
parents:
diff changeset
381 B* bp;
kono
parents:
diff changeset
382 };
kono
parents:
diff changeset
383
kono
parents:
diff changeset
384 struct A::B {
kono
parents:
diff changeset
385 int member;
kono
parents:
diff changeset
386 };
kono
parents:
diff changeset
387
kono
parents:
diff changeset
388 * On the HPPA, some classes that do not define a copy constructor
kono
parents:
diff changeset
389 will be passed and returned in memory again so that functions
kono
parents:
diff changeset
390 returning those types can be inlined.
kono
parents:
diff changeset
391
kono
parents:
diff changeset
392 *** The g++ team thanks everyone that contributed to this release,
kono
parents:
diff changeset
393 but especially:
kono
parents:
diff changeset
394
kono
parents:
diff changeset
395 * Joe Buck <jbuck@synopsys.com>, the maintainer of the g++ FAQ.
kono
parents:
diff changeset
396 * Brendan Kehoe <brendan@cygnus.com>, who coordinates testing of g++.
kono
parents:
diff changeset
397 * Jason Merrill <jason@cygnus.com>, the g++ maintainer.
kono
parents:
diff changeset
398 * Mark Mitchell <mmitchell@usa.net>, who implemented member function
kono
parents:
diff changeset
399 templates and explicit qualification of function templates.
kono
parents:
diff changeset
400 * Mike Stump <mrs@wrs.com>, the previous g++ maintainer, who did most of
kono
parents:
diff changeset
401 the exception handling work.
kono
parents:
diff changeset
402
kono
parents:
diff changeset
403
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
404 Copyright (C) 1997-2018 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
405
kono
parents:
diff changeset
406 Copying and distribution of this file, with or without modification,
kono
parents:
diff changeset
407 are permitted in any medium without royalty provided the copyright
kono
parents:
diff changeset
408 notice and this notice are preserved.