diff options
author | Jason Merrill <jason@casey.cygnus.com> | 2000-02-13 19:29:53 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2000-02-13 14:29:53 -0500 |
commit | 445ab4438d7e1d3969ee449a169f7f2104d52b50 (patch) | |
tree | 7cf1a385da9fc9da89fb532c0bef4448737a4959 | |
parent | 564e43cdf1e237ef4f451bc5afc949d8cc326b1a (diff) | |
download | gcc-445ab4438d7e1d3969ee449a169f7f2104d52b50.zip gcc-445ab4438d7e1d3969ee449a169f7f2104d52b50.tar.gz gcc-445ab4438d7e1d3969ee449a169f7f2104d52b50.tar.bz2 |
parse.y (frob_specs): Split out...
* parse.y (frob_specs): Split out...
(parse_decl): From here.
(fn.def2): Call initial_deferred_type_access_control.
(after_type_component_declarator0): Call frob_specs.
(notype_component_declarator0): Likewise.
* search.c (friend_accessible_p): Nested classes are friends of their
enclosing classes.
From-SVN: r31957
-rw-r--r-- | gcc/cp/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/cp/friend.c | 2 | ||||
-rw-r--r-- | gcc/cp/parse.c | 1655 | ||||
-rw-r--r-- | gcc/cp/parse.y | 43 | ||||
-rw-r--r-- | gcc/cp/search.c | 7 |
5 files changed, 864 insertions, 853 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 710b9d8..c382a9d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,13 @@ +2000-02-13 Jason Merrill <jason@casey.cygnus.com> + + * parse.y (frob_specs): Split out... + (parse_decl): From here. + (fn.def2): Call initial_deferred_type_access_control. + (after_type_component_declarator0): Call frob_specs. + (notype_component_declarator0): Likewise. + * search.c (friend_accessible_p): Nested classes are friends of their + enclosing classes. + 2000-02-10 Mark Mitchell <mark@codesourcery.com> * ir.texi (ADDR_EXPR): Document the fact that an ADDR_EXPR can be diff --git a/gcc/cp/friend.c b/gcc/cp/friend.c index ac93bf9..6baf52d 100644 --- a/gcc/cp/friend.c +++ b/gcc/cp/friend.c @@ -101,7 +101,7 @@ is_friend (type, supplicant) else /* It's a type. */ { - /* The type and its nested classes are implicitly friends, as + /* Nested classes are implicitly friends of their enclosing types, as per core issue 45 (this is a change from the standard). */ for (context = supplicant; context && TYPE_P (context); diff --git a/gcc/cp/parse.c b/gcc/cp/parse.c index 4a2b081..eebd16b 100644 --- a/gcc/cp/parse.c +++ b/gcc/cp/parse.c @@ -184,6 +184,18 @@ extern void yyprint PARAMS ((FILE *, int, YYSTYPE)); extern tree combine_strings PARAMS ((tree)); static void +frob_specs (specs_attrs, lookups) + tree specs_attrs; + tree lookups; +{ + initial_deferred_type_access_control (lookups); + split_specs_attrs (specs_attrs, ¤t_declspecs, &prefix_attributes); + if (current_declspecs + && TREE_CODE (current_declspecs) != TREE_LIST) + current_declspecs = build_decl_list (NULL_TREE, current_declspecs); +} + +static void parse_decl (declarator, specs_attrs, lookups, attributes, initialized, decl) tree declarator; tree specs_attrs; @@ -192,12 +204,8 @@ parse_decl (declarator, specs_attrs, lookups, attributes, initialized, decl) int initialized; tree* decl; { - initial_deferred_type_access_control (lookups); + frob_specs (specs_attrs, lookups); - split_specs_attrs (specs_attrs, ¤t_declspecs, &prefix_attributes); - if (current_declspecs - && TREE_CODE (current_declspecs) != TREE_LIST) - current_declspecs = build_decl_list (NULL_TREE, current_declspecs); if (have_extern_spec && !used_extern_spec) { current_declspecs = decl_tree_cons (NULL_TREE, @@ -656,94 +664,94 @@ static const short yyrhs[] = { -1, #if YYDEBUG != 0 static const short yyrline[] = { 0, - 354, 356, 364, 367, 368, 372, 374, 377, 382, 386, - 392, 396, 400, 404, 407, 409, 411, 414, 416, 419, - 422, 424, 426, 428, 430, 431, 433, 434, 438, 441, - 450, 453, 455, 459, 462, 464, 468, 471, 483, 490, - 498, 500, 501, 503, 507, 510, 516, 519, 521, 526, - 529, 533, 536, 539, 542, 546, 551, 561, 563, 565, - 567, 569, 582, 585, 589, 592, 594, 596, 599, 602, - 606, 608, 610, 612, 617, 619, 621, 623, 625, 626, - 633, 634, 635, 638, 641, 645, 647, 648, 651, 653, - 656, 659, 661, 665, 668, 670, 674, 676, 678, 682, - 684, 686, 690, 692, 694, 700, 704, 707, 710, 713, - 718, 721, 723, 725, 731, 743, 746, 751, 756, 759, - 764, 769, 778, 781, 783, 787, 796, 812, 815, 817, - 818, 821, 828, 834, 836, 838, 840, 842, 845, 848, - 851, 853, 854, 855, 856, 859, 861, 862, 865, 867, - 868, 871, 876, 876, 880, 880, 883, 883, 886, 886, - 890, 890, 895, 895, 898, 898, 901, 903, 906, 913, - 917, 920, 923, 925, 929, 935, 944, 946, 954, 957, - 960, 963, 967, 970, 972, 975, 978, 980, 982, 984, - 988, 991, 994, 999, 1003, 1008, 1012, 1015, 1016, 1020, - 1038, 1044, 1047, 1049, 1050, 1051, 1054, 1058, 1059, 1063, - 1067, 1070, 1072, 1076, 1079, 1082, 1086, 1089, 1091, 1093, - 1095, 1098, 1102, 1104, 1107, 1109, 1115, 1118, 1121, 1124, - 1127, 1132, 1135, 1138, 1142, 1144, 1148, 1152, 1154, 1156, - 1161, 1164, 1169, 1172, 1174, 1182, 1195, 1200, 1206, 1208, - 1210, 1223, 1226, 1228, 1230, 1232, 1234, 1236, 1238, 1240, - 1242, 1244, 1246, 1248, 1250, 1252, 1254, 1256, 1258, 1260, - 1262, 1264, 1266, 1270, 1272, 1274, 1291, 1294, 1296, 1297, - 1298, 1299, 1300, 1303, 1315, 1318, 1322, 1325, 1327, 1332, - 1334, 1335, 1338, 1340, 1348, 1350, 1352, 1354, 1358, 1361, - 1365, 1369, 1370, 1371, 1375, 1383, 1384, 1385, 1395, 1397, - 1400, 1402, 1413, 1418, 1420, 1422, 1424, 1426, 1428, 1430, - 1433, 1435, 1446, 1447, 1451, 1455, 1459, 1463, 1465, 1469, - 1471, 1473, 1481, 1483, 1485, 1487, 1491, 1493, 1495, 1497, - 1502, 1504, 1506, 1508, 1511, 1513, 1515, 1559, 1562, 1566, - 1569, 1573, 1576, 1581, 1583, 1587, 1596, 1599, 1606, 1612, - 1616, 1618, 1623, 1625, 1632, 1634, 1638, 1642, 1648, 1652, - 1655, 1659, 1662, 1672, 1675, 1679, 1683, 1686, 1689, 1692, - 1695, 1701, 1707, 1709, 1714, 1716, 1734, 1737, 1742, 1747, - 1755, 1757, 1770, 1774, 1777, 1780, 1785, 1788, 1796, 1799, - 1801, 1803, 1806, 1809, 1824, 1843, 1846, 1848, 1851, 1853, - 1857, 1859, 1863, 1865, 1869, 1872, 1876, 1885, 1886, 1901, - 1908, 1910, 1917, 1922, 1927, 1933, 1934, 1942, 1945, 1949, - 1952, 1956, 1961, 1964, 1968, 1971, 1973, 1975, 1977, 1984, - 1986, 1987, 1988, 1992, 1995, 1999, 2002, 2008, 2010, 2013, - 2016, 2019, 2025, 2028, 2031, 2033, 2035, 2039, 2046, 2052, - 2057, 2063, 2065, 2070, 2073, 2076, 2078, 2080, 2084, 2088, - 2093, 2096, 2101, 2104, 2107, 2113, 2115, 2127, 2131, 2136, - 2162, 2164, 2167, 2169, 2174, 2176, 2178, 2180, 2182, 2184, - 2188, 2196, 2199, 2201, 2205, 2212, 2218, 2224, 2230, 2240, - 2246, 2250, 2257, 2285, 2295, 2301, 2304, 2307, 2309, 2313, - 2315, 2319, 2322, 2326, 2334, 2337, 2339, 2343, 2354, 2368, - 2369, 2370, 2371, 2374, 2383, 2388, 2394, 2396, 2401, 2403, - 2405, 2407, 2409, 2411, 2414, 2424, 2431, 2456, 2462, 2465, - 2468, 2470, 2481, 2486, 2489, 2494, 2497, 2504, 2514, 2517, - 2524, 2534, 2536, 2539, 2541, 2544, 2551, 2559, 2566, 2572, - 2578, 2586, 2590, 2595, 2599, 2602, 2607, 2609, 2616, 2618, - 2621, 2624, 2629, 2633, 2638, 2648, 2651, 2655, 2659, 2668, - 2671, 2673, 2675, 2681, 2683, 2692, 2695, 2697, 2699, 2701, - 2705, 2708, 2711, 2713, 2715, 2717, 2721, 2724, 2735, 2745, - 2747, 2748, 2752, 2760, 2762, 2770, 2773, 2775, 2777, 2779, - 2783, 2786, 2789, 2791, 2793, 2795, 2799, 2802, 2805, 2807, - 2809, 2811, 2813, 2820, 2824, 2829, 2833, 2838, 2840, 2844, - 2847, 2849, 2853, 2855, 2856, 2859, 2861, 2863, 2870, 2881, - 2887, 2893, 2907, 2909, 2913, 2927, 2929, 2931, 2935, 2941, - 2954, 2957, 2962, 2975, 2981, 2983, 2984, 2985, 2993, 2998, - 3007, 3008, 3012, 3015, 3021, 3027, 3030, 3032, 3034, 3036, - 3040, 3044, 3048, 3051, 3055, 3057, 3066, 3069, 3071, 3073, - 3075, 3077, 3079, 3081, 3083, 3087, 3091, 3095, 3099, 3101, - 3103, 3105, 3107, 3109, 3111, 3113, 3115, 3123, 3125, 3126, - 3127, 3130, 3136, 3138, 3143, 3145, 3148, 3161, 3164, 3167, - 3171, 3174, 3181, 3183, 3186, 3188, 3190, 3193, 3196, 3199, - 3202, 3204, 3207, 3211, 3213, 3219, 3221, 3222, 3224, 3229, - 3231, 3233, 3235, 3237, 3240, 3241, 3243, 3246, 3247, 3250, - 3250, 3253, 3253, 3256, 3256, 3258, 3260, 3262, 3264, 3270, - 3276, 3278, 3281, 3284, 3287, 3290, 3296, 3298, 3299, 3302, - 3304, 3305, 3306, 3308, 3311, 3314, 3317, 3323, 3327, 3329, - 3332, 3334, 3337, 3341, 3343, 3346, 3348, 3351, 3368, 3376, - 3379, 3381, 3383, 3387, 3390, 3391, 3399, 3403, 3407, 3410, - 3411, 3417, 3420, 3423, 3425, 3429, 3434, 3437, 3447, 3452, - 3453, 3460, 3463, 3466, 3468, 3471, 3473, 3483, 3497, 3501, - 3504, 3506, 3510, 3514, 3517, 3520, 3522, 3526, 3528, 3535, - 3542, 3545, 3549, 3553, 3557, 3563, 3567, 3572, 3574, 3577, - 3582, 3588, 3599, 3602, 3604, 3608, 3616, 3619, 3623, 3626, - 3628, 3630, 3636, 3641, 3644, 3646, 3648, 3650, 3652, 3654, - 3656, 3658, 3660, 3662, 3664, 3666, 3668, 3670, 3672, 3674, - 3676, 3678, 3680, 3682, 3684, 3686, 3688, 3690, 3692, 3694, - 3696, 3698, 3700, 3702, 3704, 3706, 3709, 3711 + 362, 364, 372, 375, 376, 380, 382, 385, 390, 394, + 400, 404, 408, 412, 415, 417, 419, 422, 424, 427, + 430, 432, 434, 436, 438, 439, 441, 442, 446, 449, + 458, 461, 463, 467, 470, 472, 476, 479, 491, 498, + 506, 508, 509, 511, 515, 518, 524, 527, 529, 534, + 537, 541, 544, 547, 550, 554, 559, 569, 571, 573, + 575, 577, 590, 593, 597, 600, 602, 604, 607, 610, + 614, 616, 618, 620, 625, 627, 629, 631, 633, 634, + 641, 642, 643, 646, 649, 653, 655, 656, 659, 661, + 664, 667, 669, 673, 676, 678, 682, 684, 686, 690, + 692, 694, 698, 700, 702, 708, 712, 715, 718, 721, + 726, 729, 731, 733, 739, 751, 754, 760, 765, 768, + 773, 778, 787, 790, 792, 796, 805, 821, 824, 826, + 827, 830, 837, 843, 845, 847, 849, 851, 854, 857, + 860, 862, 863, 864, 865, 868, 870, 871, 874, 876, + 877, 880, 885, 885, 889, 889, 892, 892, 895, 895, + 899, 899, 904, 904, 907, 907, 910, 912, 915, 922, + 926, 929, 932, 934, 938, 944, 953, 955, 963, 966, + 969, 972, 976, 979, 981, 984, 987, 989, 991, 993, + 997, 1000, 1003, 1008, 1012, 1017, 1021, 1024, 1025, 1029, + 1047, 1053, 1056, 1058, 1059, 1060, 1063, 1067, 1068, 1072, + 1076, 1079, 1081, 1085, 1088, 1091, 1095, 1098, 1100, 1102, + 1104, 1107, 1111, 1113, 1116, 1118, 1124, 1127, 1130, 1133, + 1136, 1141, 1144, 1147, 1151, 1153, 1157, 1161, 1163, 1165, + 1170, 1173, 1178, 1181, 1183, 1191, 1204, 1209, 1215, 1217, + 1219, 1232, 1235, 1237, 1239, 1241, 1243, 1245, 1247, 1249, + 1251, 1253, 1255, 1257, 1259, 1261, 1263, 1265, 1267, 1269, + 1271, 1273, 1275, 1279, 1281, 1283, 1300, 1303, 1305, 1306, + 1307, 1308, 1309, 1312, 1324, 1327, 1331, 1334, 1336, 1341, + 1343, 1344, 1347, 1349, 1357, 1359, 1361, 1363, 1367, 1370, + 1374, 1378, 1379, 1380, 1384, 1392, 1393, 1394, 1404, 1406, + 1409, 1411, 1422, 1427, 1429, 1431, 1433, 1435, 1437, 1439, + 1442, 1444, 1455, 1456, 1460, 1464, 1468, 1472, 1474, 1478, + 1480, 1482, 1490, 1492, 1494, 1496, 1500, 1502, 1504, 1506, + 1511, 1513, 1515, 1517, 1520, 1522, 1524, 1568, 1571, 1575, + 1578, 1582, 1585, 1590, 1592, 1596, 1605, 1608, 1615, 1621, + 1625, 1627, 1632, 1634, 1641, 1643, 1647, 1651, 1657, 1661, + 1664, 1668, 1671, 1681, 1684, 1688, 1692, 1695, 1698, 1701, + 1704, 1710, 1716, 1718, 1723, 1725, 1743, 1746, 1751, 1756, + 1764, 1766, 1779, 1783, 1786, 1789, 1794, 1797, 1805, 1808, + 1810, 1812, 1815, 1818, 1833, 1852, 1855, 1857, 1860, 1862, + 1866, 1868, 1872, 1874, 1878, 1881, 1885, 1894, 1895, 1910, + 1917, 1919, 1926, 1931, 1936, 1942, 1943, 1951, 1954, 1958, + 1961, 1965, 1970, 1973, 1977, 1980, 1982, 1984, 1986, 1993, + 1995, 1996, 1997, 2001, 2004, 2008, 2011, 2017, 2019, 2022, + 2025, 2028, 2034, 2037, 2040, 2042, 2044, 2048, 2055, 2061, + 2066, 2072, 2074, 2079, 2082, 2085, 2087, 2089, 2093, 2097, + 2102, 2105, 2110, 2113, 2116, 2122, 2124, 2136, 2140, 2145, + 2171, 2173, 2176, 2178, 2183, 2185, 2187, 2189, 2191, 2193, + 2197, 2205, 2208, 2210, 2214, 2221, 2227, 2233, 2239, 2249, + 2255, 2259, 2266, 2294, 2304, 2310, 2313, 2316, 2318, 2322, + 2324, 2328, 2331, 2335, 2343, 2346, 2348, 2352, 2363, 2377, + 2378, 2379, 2380, 2383, 2392, 2397, 2403, 2405, 2410, 2412, + 2414, 2416, 2418, 2420, 2423, 2433, 2440, 2465, 2471, 2474, + 2477, 2479, 2490, 2495, 2498, 2503, 2506, 2513, 2523, 2526, + 2533, 2543, 2545, 2548, 2550, 2553, 2558, 2564, 2569, 2573, + 2577, 2583, 2587, 2592, 2596, 2599, 2604, 2606, 2613, 2615, + 2618, 2621, 2626, 2630, 2635, 2645, 2648, 2652, 2656, 2665, + 2668, 2670, 2672, 2678, 2680, 2689, 2692, 2694, 2696, 2698, + 2702, 2705, 2708, 2710, 2712, 2714, 2718, 2721, 2732, 2742, + 2744, 2745, 2749, 2757, 2759, 2767, 2770, 2772, 2774, 2776, + 2780, 2783, 2786, 2788, 2790, 2792, 2796, 2799, 2802, 2804, + 2806, 2808, 2810, 2817, 2821, 2826, 2830, 2835, 2837, 2841, + 2844, 2846, 2850, 2852, 2853, 2856, 2858, 2860, 2867, 2878, + 2884, 2890, 2904, 2906, 2910, 2924, 2926, 2928, 2932, 2938, + 2951, 2954, 2959, 2972, 2978, 2980, 2981, 2982, 2990, 2995, + 3004, 3005, 3009, 3012, 3018, 3024, 3027, 3029, 3031, 3033, + 3037, 3041, 3045, 3048, 3052, 3054, 3063, 3066, 3068, 3070, + 3072, 3074, 3076, 3078, 3080, 3084, 3088, 3092, 3096, 3098, + 3100, 3102, 3104, 3106, 3108, 3110, 3112, 3120, 3122, 3123, + 3124, 3127, 3133, 3135, 3140, 3142, 3145, 3158, 3161, 3164, + 3168, 3171, 3178, 3180, 3183, 3185, 3187, 3190, 3193, 3196, + 3199, 3201, 3204, 3208, 3210, 3216, 3218, 3219, 3221, 3226, + 3228, 3230, 3232, 3234, 3237, 3238, 3240, 3243, 3244, 3247, + 3247, 3250, 3250, 3253, 3253, 3255, 3257, 3259, 3261, 3267, + 3273, 3275, 3278, 3281, 3284, 3287, 3293, 3295, 3296, 3299, + 3301, 3302, 3303, 3305, 3308, 3311, 3314, 3320, 3324, 3326, + 3329, 3331, 3334, 3338, 3340, 3343, 3345, 3348, 3365, 3373, + 3376, 3378, 3380, 3384, 3387, 3388, 3396, 3400, 3404, 3407, + 3408, 3414, 3417, 3420, 3422, 3426, 3431, 3434, 3444, 3449, + 3450, 3457, 3460, 3463, 3465, 3468, 3470, 3480, 3494, 3498, + 3501, 3503, 3507, 3511, 3514, 3517, 3519, 3523, 3525, 3532, + 3539, 3542, 3546, 3550, 3554, 3560, 3564, 3569, 3571, 3574, + 3579, 3585, 3596, 3599, 3601, 3605, 3613, 3616, 3620, 3623, + 3625, 3627, 3633, 3638, 3641, 3643, 3645, 3647, 3649, 3651, + 3653, 3655, 3657, 3659, 3661, 3663, 3665, 3667, 3669, 3671, + 3673, 3675, 3677, 3679, 3681, 3683, 3685, 3687, 3689, 3691, + 3693, 3695, 3697, 3699, 3701, 3703, 3706, 3708 }; #endif @@ -4497,107 +4505,107 @@ yyreduce: switch (yyn) { case 2: -#line 357 "parse.y" +#line 365 "parse.y" { finish_translation_unit (); ; break;} case 3: -#line 365 "parse.y" +#line 373 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 4: -#line 367 "parse.y" +#line 375 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 5: -#line 369 "parse.y" +#line 377 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 8: -#line 378 "parse.y" +#line 386 "parse.y" { have_extern_spec = 1; used_extern_spec = 0; yyval.ttype = NULL_TREE; ; break;} case 9: -#line 383 "parse.y" +#line 391 "parse.y" { have_extern_spec = 0; ; break;} case 10: -#line 388 "parse.y" +#line 396 "parse.y" { yyval.itype = pedantic; pedantic = 0; ; break;} case 12: -#line 397 "parse.y" +#line 405 "parse.y" { if (pending_lang_change) do_pending_lang_change(); type_lookups = NULL_TREE; ; break;} case 13: -#line 400 "parse.y" +#line 408 "parse.y" { if (! toplevel_bindings_p ()) pop_everything (); ; break;} case 14: -#line 406 "parse.y" +#line 414 "parse.y" { if (pending_inlines) do_pending_inlines (); ; break;} case 15: -#line 408 "parse.y" +#line 416 "parse.y" { if (pending_inlines) do_pending_inlines (); ; break;} case 16: -#line 410 "parse.y" +#line 418 "parse.y" { if (pending_inlines) do_pending_inlines (); ; break;} case 17: -#line 412 "parse.y" +#line 420 "parse.y" { if (TREE_CHAIN (yyvsp[-2].ttype)) yyvsp[-2].ttype = combine_strings (yyvsp[-2].ttype); assemble_asm (yyvsp[-2].ttype); ; break;} case 18: -#line 415 "parse.y" +#line 423 "parse.y" { pop_lang_context (); ; break;} case 19: -#line 417 "parse.y" +#line 425 "parse.y" { if (pending_inlines) do_pending_inlines (); pop_lang_context (); ; break;} case 20: -#line 420 "parse.y" +#line 428 "parse.y" { if (pending_inlines) do_pending_inlines (); pop_lang_context (); ; break;} case 21: -#line 423 "parse.y" +#line 431 "parse.y" { push_namespace (yyvsp[-1].ttype); ; break;} case 22: -#line 425 "parse.y" +#line 433 "parse.y" { pop_namespace (); ; break;} case 23: -#line 427 "parse.y" +#line 435 "parse.y" { push_namespace (NULL_TREE); ; break;} case 24: -#line 429 "parse.y" +#line 437 "parse.y" { pop_namespace (); ; break;} case 26: -#line 432 "parse.y" +#line 440 "parse.y" { do_toplevel_using_decl (yyvsp[-1].ttype); ; break;} case 28: -#line 435 "parse.y" +#line 443 "parse.y" { pedantic = yyvsp[-1].itype; ; break;} case 29: -#line 440 "parse.y" +#line 448 "parse.y" { begin_only_namespace_names (); ; break;} case 30: -#line 442 "parse.y" +#line 450 "parse.y" { end_only_namespace_names (); if (lastiddecl) @@ -4606,35 +4614,35 @@ case 30: ; break;} case 31: -#line 452 "parse.y" +#line 460 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 32: -#line 454 "parse.y" +#line 462 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 33: -#line 456 "parse.y" +#line 464 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 34: -#line 461 "parse.y" +#line 469 "parse.y" { yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 35: -#line 463 "parse.y" +#line 471 "parse.y" { yyval.ttype = build_parse_node (SCOPE_REF, global_namespace, yyvsp[0].ttype); ; break;} case 36: -#line 465 "parse.y" +#line 473 "parse.y" { yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 37: -#line 470 "parse.y" +#line 478 "parse.y" { begin_only_namespace_names (); ; break;} case 38: -#line 472 "parse.y" +#line 480 "parse.y" { end_only_namespace_names (); /* If no declaration was found, the using-directive is @@ -4646,7 +4654,7 @@ case 38: ; break;} case 39: -#line 485 "parse.y" +#line 493 "parse.y" { if (TREE_CODE (yyval.ttype) == IDENTIFIER_NODE) yyval.ttype = lastiddecl; @@ -4654,7 +4662,7 @@ case 39: ; break;} case 40: -#line 491 "parse.y" +#line 499 "parse.y" { yyval.ttype = yyvsp[-1].ttype; if (TREE_CODE (yyval.ttype) == IDENTIFIER_NODE) @@ -4663,86 +4671,86 @@ case 40: ; break;} case 43: -#line 502 "parse.y" +#line 510 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 44: -#line 504 "parse.y" +#line 512 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 45: -#line 509 "parse.y" +#line 517 "parse.y" { push_lang_context (yyvsp[0].ttype); ; break;} case 46: -#line 511 "parse.y" +#line 519 "parse.y" { if (current_lang_name != yyvsp[0].ttype) cp_error ("use of linkage spec `%D' is different from previous spec `%D'", yyvsp[0].ttype, current_lang_name); pop_lang_context (); push_lang_context (yyvsp[0].ttype); ; break;} case 47: -#line 518 "parse.y" +#line 526 "parse.y" { begin_template_parm_list (); ; break;} case 48: -#line 520 "parse.y" +#line 528 "parse.y" { yyval.ttype = end_template_parm_list (yyvsp[-1].ttype); ; break;} case 49: -#line 522 "parse.y" +#line 530 "parse.y" { begin_specialization(); yyval.ttype = NULL_TREE; ; break;} case 50: -#line 528 "parse.y" +#line 536 "parse.y" { yyval.ttype = process_template_parm (NULL_TREE, yyvsp[0].ttype); ; break;} case 51: -#line 530 "parse.y" +#line 538 "parse.y" { yyval.ttype = process_template_parm (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 52: -#line 535 "parse.y" +#line 543 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 53: -#line 537 "parse.y" +#line 545 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 54: -#line 541 "parse.y" +#line 549 "parse.y" { yyval.ttype = finish_template_type_parm (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 55: -#line 543 "parse.y" +#line 551 "parse.y" { yyval.ttype = finish_template_type_parm (class_type_node, yyvsp[0].ttype); ; break;} case 56: -#line 548 "parse.y" +#line 556 "parse.y" { yyval.ttype = finish_template_template_parm (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 57: -#line 560 "parse.y" +#line 568 "parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 58: -#line 562 "parse.y" +#line 570 "parse.y" { yyval.ttype = build_tree_list (groktypename (yyvsp[0].ftype.t), yyvsp[-2].ttype); ; break;} case 59: -#line 564 "parse.y" +#line 572 "parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ftype.t); ; break;} case 60: -#line 566 "parse.y" +#line 574 "parse.y" { yyval.ttype = build_tree_list (yyvsp[0].ttype, yyvsp[-2].ftype.t); ; break;} case 61: -#line 568 "parse.y" +#line 576 "parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 62: -#line 570 "parse.y" +#line 578 "parse.y" { if (TREE_CODE (yyvsp[0].ttype) != TEMPLATE_DECL && TREE_CODE (yyvsp[0].ttype) != TEMPLATE_TEMPLATE_PARM @@ -4755,66 +4763,66 @@ case 62: ; break;} case 63: -#line 584 "parse.y" +#line 592 "parse.y" { finish_template_decl (yyvsp[-1].ttype); ; break;} case 64: -#line 586 "parse.y" +#line 594 "parse.y" { finish_template_decl (yyvsp[-1].ttype); ; break;} case 65: -#line 591 "parse.y" +#line 599 "parse.y" { if (pending_inlines) do_pending_inlines (); ; break;} case 66: -#line 593 "parse.y" +#line 601 "parse.y" { if (pending_inlines) do_pending_inlines (); ; break;} case 67: -#line 595 "parse.y" +#line 603 "parse.y" { if (pending_inlines) do_pending_inlines (); ; break;} case 68: -#line 597 "parse.y" +#line 605 "parse.y" { if (pending_inlines) do_pending_inlines (); pop_lang_context (); ; break;} case 69: -#line 600 "parse.y" +#line 608 "parse.y" { if (pending_inlines) do_pending_inlines (); pop_lang_context (); ; break;} case 70: -#line 603 "parse.y" +#line 611 "parse.y" { pedantic = yyvsp[-1].itype; ; break;} case 72: -#line 609 "parse.y" +#line 617 "parse.y" {; break;} case 73: -#line 611 "parse.y" +#line 619 "parse.y" { note_list_got_semicolon (yyvsp[-2].ftype.t); ; break;} case 74: -#line 613 "parse.y" +#line 621 "parse.y" { maybe_process_partial_specialization (yyvsp[-1].ftype.t); note_got_semicolon (yyvsp[-1].ftype.t); ; break;} case 76: -#line 620 "parse.y" +#line 628 "parse.y" {; break;} case 77: -#line 622 "parse.y" +#line 630 "parse.y" { note_list_got_semicolon (yyvsp[-2].ftype.t); ; break;} case 78: -#line 624 "parse.y" +#line 632 "parse.y" { pedwarn ("empty declaration"); ; break;} case 80: -#line 627 "parse.y" +#line 635 "parse.y" { tree t, attrs; split_specs_attrs (yyvsp[-1].ftype.t, &t, &attrs); @@ -4823,124 +4831,124 @@ case 80: ; break;} case 84: -#line 640 "parse.y" +#line 648 "parse.y" { yyval.itype = 0; ; break;} case 85: -#line 642 "parse.y" +#line 650 "parse.y" { yyval.itype = 1; ; break;} case 91: -#line 658 "parse.y" +#line 666 "parse.y" { expand_body (finish_function (lineno, (int)yyvsp[-1].itype)); ; break;} case 92: -#line 660 "parse.y" +#line 668 "parse.y" { expand_body (finish_function (lineno, (int)yyvsp[0].itype)); ; break;} case 93: -#line 662 "parse.y" +#line 670 "parse.y" { ; break;} case 94: -#line 667 "parse.y" +#line 675 "parse.y" { yyval.ttype = begin_constructor_declarator (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 95: -#line 669 "parse.y" +#line 677 "parse.y" { yyval.ttype = make_call_declarator (yyvsp[-4].ttype, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 96: -#line 671 "parse.y" +#line 679 "parse.y" { yyval.ttype = begin_constructor_declarator (yyvsp[-4].ttype, yyvsp[-3].ttype); yyval.ttype = make_call_declarator (yyval.ttype, empty_parms (), yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 97: -#line 675 "parse.y" +#line 683 "parse.y" { yyval.ttype = begin_constructor_declarator (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 98: -#line 677 "parse.y" +#line 685 "parse.y" { yyval.ttype = make_call_declarator (yyvsp[-4].ttype, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 99: -#line 679 "parse.y" +#line 687 "parse.y" { yyval.ttype = begin_constructor_declarator (yyvsp[-4].ttype, yyvsp[-3].ttype); yyval.ttype = make_call_declarator (yyval.ttype, empty_parms (), yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 100: -#line 683 "parse.y" +#line 691 "parse.y" { yyval.ttype = begin_constructor_declarator (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 101: -#line 685 "parse.y" +#line 693 "parse.y" { yyval.ttype = make_call_declarator (yyvsp[-4].ttype, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 102: -#line 687 "parse.y" +#line 695 "parse.y" { yyval.ttype = begin_constructor_declarator (yyvsp[-4].ttype, yyvsp[-3].ttype); yyval.ttype = make_call_declarator (yyval.ttype, empty_parms (), yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 103: -#line 691 "parse.y" +#line 699 "parse.y" { yyval.ttype = begin_constructor_declarator (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 104: -#line 693 "parse.y" +#line 701 "parse.y" { yyval.ttype = make_call_declarator (yyvsp[-4].ttype, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 105: -#line 695 "parse.y" +#line 703 "parse.y" { yyval.ttype = begin_constructor_declarator (yyvsp[-4].ttype, yyvsp[-3].ttype); yyval.ttype = make_call_declarator (yyval.ttype, empty_parms (), yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 106: -#line 702 "parse.y" +#line 710 "parse.y" { if (!begin_function_definition (yyvsp[-1].ftype.t, yyvsp[-1].ftype.lookups, yyvsp[0].ttype)) YYERROR1; ; break;} case 107: -#line 705 "parse.y" +#line 713 "parse.y" { if (!begin_function_definition (yyvsp[-1].ftype.t, NULL_TREE, yyvsp[0].ttype)) YYERROR1; ; break;} case 108: -#line 708 "parse.y" +#line 716 "parse.y" { if (!begin_function_definition (NULL_TREE, NULL_TREE, yyvsp[0].ttype)) YYERROR1; ; break;} case 109: -#line 711 "parse.y" +#line 719 "parse.y" { if (!begin_function_definition (yyvsp[-1].ftype.t, NULL_TREE, yyvsp[0].ttype)) YYERROR1; ; break;} case 110: -#line 714 "parse.y" +#line 722 "parse.y" { if (!begin_function_definition (NULL_TREE, NULL_TREE, yyvsp[0].ttype)) YYERROR1; ; break;} case 111: -#line 720 "parse.y" +#line 728 "parse.y" { yyval.ttype = make_call_declarator (yyvsp[-5].ttype, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 112: -#line 722 "parse.y" +#line 730 "parse.y" { yyval.ttype = make_call_declarator (yyvsp[-3].ttype, empty_parms (), yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 113: -#line 724 "parse.y" +#line 732 "parse.y" { yyval.ttype = make_call_declarator (yyvsp[-5].ttype, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 114: -#line 726 "parse.y" +#line 734 "parse.y" { yyval.ttype = make_call_declarator (yyvsp[-3].ttype, empty_parms (), yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 115: -#line 733 "parse.y" +#line 741 "parse.y" { tree specs, attrs; split_specs_attrs (yyvsp[-1].ftype.t, &specs, &attrs); attrs = build_tree_list (attrs, NULL_TREE); @@ -4953,43 +4961,44 @@ case 115: reinit_parse_for_method (yychar, yyval.ttype); ; break;} case 116: -#line 744 "parse.y" +#line 752 "parse.y" { yyval.ttype = start_method (NULL_TREE, yyvsp[0].ttype, NULL_TREE); goto rest_of_mdef; ; break;} case 117: -#line 747 "parse.y" +#line 755 "parse.y" { tree specs, attrs; split_specs_attrs (yyvsp[-1].ftype.t, &specs, &attrs); attrs = build_tree_list (attrs, NULL_TREE); + initial_deferred_type_access_control (yyvsp[-1].ftype.lookups); yyval.ttype = start_method (specs, yyvsp[0].ttype, attrs); goto rest_of_mdef; ; break;} case 118: -#line 752 "parse.y" +#line 761 "parse.y" { tree specs, attrs; split_specs_attrs (yyvsp[-1].ftype.t, &specs, &attrs); attrs = build_tree_list (attrs, NULL_TREE); yyval.ttype = start_method (specs, yyvsp[0].ttype, attrs); goto rest_of_mdef; ; break;} case 119: -#line 757 "parse.y" +#line 766 "parse.y" { yyval.ttype = start_method (NULL_TREE, yyval.ttype, NULL_TREE); goto rest_of_mdef; ; break;} case 120: -#line 760 "parse.y" +#line 769 "parse.y" { tree specs, attrs; split_specs_attrs (yyvsp[-1].ftype.t, &specs, &attrs); attrs = build_tree_list (attrs, NULL_TREE); yyval.ttype = start_method (specs, yyvsp[0].ttype, attrs); goto rest_of_mdef; ; break;} case 121: -#line 765 "parse.y" +#line 774 "parse.y" { yyval.ttype = start_method (NULL_TREE, yyval.ttype, NULL_TREE); goto rest_of_mdef; ; break;} case 122: -#line 771 "parse.y" +#line 780 "parse.y" { if (! current_function_parms_stored) store_parm_decls (); @@ -4997,19 +5006,19 @@ case 122: ; break;} case 123: -#line 780 "parse.y" +#line 789 "parse.y" { finish_named_return_value (yyval.ttype, yyvsp[0].ttype); ; break;} case 124: -#line 782 "parse.y" +#line 791 "parse.y" { finish_named_return_value (yyval.ttype, yyvsp[-1].ttype); ; break;} case 125: -#line 784 "parse.y" +#line 793 "parse.y" { finish_named_return_value (yyval.ttype, NULL_TREE); ; break;} case 126: -#line 789 "parse.y" +#line 798 "parse.y" { if (yyvsp[0].itype == 0) error ("no base initializers given following ':'"); @@ -5017,7 +5026,7 @@ case 126: ; break;} case 127: -#line 798 "parse.y" +#line 807 "parse.y" { if (! current_function_parms_stored) store_parm_decls (); @@ -5032,15 +5041,15 @@ case 127: ; break;} case 128: -#line 814 "parse.y" +#line 823 "parse.y" { yyval.itype = 0; ; break;} case 129: -#line 816 "parse.y" +#line 825 "parse.y" { yyval.itype = 1; ; break;} case 132: -#line 823 "parse.y" +#line 832 "parse.y" { if (current_class_name) pedwarn ("anachronistic old style base class initializer"); @@ -5048,7 +5057,7 @@ case 132: ; break;} case 133: -#line 829 "parse.y" +#line 838 "parse.y" { if (current_class_name) pedwarn ("anachronistic old style base class initializer"); @@ -5056,93 +5065,93 @@ case 133: ; break;} case 134: -#line 835 "parse.y" +#line 844 "parse.y" { expand_member_init (current_class_ref, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 135: -#line 837 "parse.y" +#line 846 "parse.y" { expand_member_init (current_class_ref, yyvsp[-1].ttype, void_type_node); ; break;} case 136: -#line 839 "parse.y" +#line 848 "parse.y" { expand_member_init (current_class_ref, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 137: -#line 841 "parse.y" +#line 850 "parse.y" { expand_member_init (current_class_ref, yyvsp[-1].ttype, void_type_node); ; break;} case 138: -#line 843 "parse.y" +#line 852 "parse.y" { expand_member_init (current_class_ref, TYPE_MAIN_DECL (yyvsp[-3].ttype), yyvsp[-1].ttype); ; break;} case 139: -#line 846 "parse.y" +#line 855 "parse.y" { expand_member_init (current_class_ref, TYPE_MAIN_DECL (yyvsp[-1].ttype), void_type_node); ; break;} case 152: -#line 873 "parse.y" +#line 882 "parse.y" { do_type_instantiation (yyvsp[-1].ftype.t, NULL_TREE); yyungetc (';', 1); ; break;} case 154: -#line 877 "parse.y" +#line 886 "parse.y" { tree specs = strip_attrs (yyvsp[-1].ftype.t); do_decl_instantiation (specs, yyvsp[0].ttype, NULL_TREE); ; break;} case 156: -#line 881 "parse.y" +#line 890 "parse.y" { do_decl_instantiation (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ; break;} case 158: -#line 884 "parse.y" +#line 893 "parse.y" { do_decl_instantiation (NULL_TREE, yyvsp[0].ttype, NULL_TREE); ; break;} case 160: -#line 887 "parse.y" +#line 896 "parse.y" { do_type_instantiation (yyvsp[-1].ftype.t, yyvsp[-4].ttype); yyungetc (';', 1); ; break;} case 162: -#line 892 "parse.y" +#line 901 "parse.y" { tree specs = strip_attrs (yyvsp[-1].ftype.t); do_decl_instantiation (specs, yyvsp[0].ttype, yyvsp[-4].ttype); ; break;} case 164: -#line 896 "parse.y" +#line 905 "parse.y" { do_decl_instantiation (NULL_TREE, yyvsp[0].ttype, yyvsp[-3].ttype); ; break;} case 166: -#line 899 "parse.y" +#line 908 "parse.y" { do_decl_instantiation (NULL_TREE, yyvsp[0].ttype, yyvsp[-3].ttype); ; break;} case 168: -#line 904 "parse.y" +#line 913 "parse.y" { begin_explicit_instantiation(); ; break;} case 169: -#line 907 "parse.y" +#line 916 "parse.y" { end_explicit_instantiation(); ; break;} case 170: -#line 916 "parse.y" +#line 925 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 171: -#line 919 "parse.y" +#line 928 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 174: -#line 927 "parse.y" +#line 936 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 175: -#line 932 "parse.y" +#line 941 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 176: -#line 936 "parse.y" +#line 945 "parse.y" { if (yychar == YYEMPTY) yychar = YYLEX; @@ -5152,7 +5161,7 @@ case 176: ; break;} case 178: -#line 947 "parse.y" +#line 956 "parse.y" { /* Handle `Class<Class<Type>>' without space in the `>>' */ pedwarn ("`>>' should be `> >' in template class name"); @@ -5160,79 +5169,79 @@ case 178: ; break;} case 179: -#line 956 "parse.y" +#line 965 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 181: -#line 962 "parse.y" +#line 971 "parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyval.ttype); ; break;} case 182: -#line 964 "parse.y" +#line 973 "parse.y" { yyval.ttype = chainon (yyval.ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 183: -#line 969 "parse.y" +#line 978 "parse.y" { yyval.ttype = groktypename (yyvsp[0].ftype.t); ; break;} case 184: -#line 971 "parse.y" +#line 980 "parse.y" { yyval.ttype = lastiddecl; ; break;} case 186: -#line 977 "parse.y" +#line 986 "parse.y" { yyval.code = NEGATE_EXPR; ; break;} case 187: -#line 979 "parse.y" +#line 988 "parse.y" { yyval.code = CONVERT_EXPR; ; break;} case 188: -#line 981 "parse.y" +#line 990 "parse.y" { yyval.code = PREINCREMENT_EXPR; ; break;} case 189: -#line 983 "parse.y" +#line 992 "parse.y" { yyval.code = PREDECREMENT_EXPR; ; break;} case 190: -#line 985 "parse.y" +#line 994 "parse.y" { yyval.code = TRUTH_NOT_EXPR; ; break;} case 191: -#line 990 "parse.y" +#line 999 "parse.y" { yyval.ttype = build_x_compound_expr (yyval.ttype); ; break;} case 193: -#line 996 "parse.y" +#line 1005 "parse.y" { error ("ANSI C++ forbids an empty condition for `%s'", cond_stmt_keyword); yyval.ttype = integer_zero_node; ; break;} case 194: -#line 1000 "parse.y" +#line 1009 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 195: -#line 1005 "parse.y" +#line 1014 "parse.y" { error ("ANSI C++ forbids an empty condition for `%s'", cond_stmt_keyword); yyval.ttype = integer_zero_node; ; break;} case 196: -#line 1009 "parse.y" +#line 1018 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 197: -#line 1014 "parse.y" +#line 1023 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 199: -#line 1017 "parse.y" +#line 1026 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 200: -#line 1022 "parse.y" +#line 1031 "parse.y" { { tree d; for (d = getdecls (); d; d = TREE_CHAIN (d)) @@ -5250,7 +5259,7 @@ case 200: ; break;} case 201: -#line 1038 "parse.y" +#line 1047 "parse.y" { cp_finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-3].ttype, LOOKUP_ONLYCONVERTING); yyval.ttype = convert_from_reference (yyvsp[-1].ttype); @@ -5259,180 +5268,180 @@ case 201: ; break;} case 207: -#line 1056 "parse.y" +#line 1065 "parse.y" { yyval.ttype = begin_compound_stmt (1); ; break;} case 208: -#line 1058 "parse.y" +#line 1067 "parse.y" { finish_compound_stmt (1, yyvsp[-1].ttype); ; break;} case 210: -#line 1065 "parse.y" +#line 1074 "parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyval.ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 211: -#line 1068 "parse.y" +#line 1077 "parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyval.ttype, build_tree_list (NULL_TREE, error_mark_node)); ; break;} case 212: -#line 1071 "parse.y" +#line 1080 "parse.y" { chainon (yyval.ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 213: -#line 1073 "parse.y" +#line 1082 "parse.y" { chainon (yyval.ttype, build_tree_list (NULL_TREE, error_mark_node)); ; break;} case 214: -#line 1078 "parse.y" +#line 1087 "parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyval.ttype); ; break;} case 216: -#line 1084 "parse.y" +#line 1093 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 217: -#line 1087 "parse.y" +#line 1096 "parse.y" { yyval.ttype = yyvsp[0].ttype; pedantic = yyvsp[-1].itype; ; break;} case 218: -#line 1090 "parse.y" +#line 1099 "parse.y" { yyval.ttype = build_x_indirect_ref (yyvsp[0].ttype, "unary *"); ; break;} case 219: -#line 1092 "parse.y" +#line 1101 "parse.y" { yyval.ttype = build_x_unary_op (ADDR_EXPR, yyvsp[0].ttype); ; break;} case 220: -#line 1094 "parse.y" +#line 1103 "parse.y" { yyval.ttype = build_x_unary_op (BIT_NOT_EXPR, yyvsp[0].ttype); ; break;} case 221: -#line 1096 "parse.y" +#line 1105 "parse.y" { yyval.ttype = finish_unary_op_expr (yyvsp[-1].code, yyvsp[0].ttype); ; break;} case 222: -#line 1099 "parse.y" +#line 1108 "parse.y" { if (pedantic) pedwarn ("ANSI C++ forbids `&&'"); yyval.ttype = finish_label_address_expr (yyvsp[0].ttype); ; break;} case 223: -#line 1103 "parse.y" +#line 1112 "parse.y" { yyval.ttype = expr_sizeof (yyvsp[0].ttype); ; break;} case 224: -#line 1105 "parse.y" +#line 1114 "parse.y" { yyval.ttype = c_sizeof (groktypename (yyvsp[-1].ftype.t)); check_for_new_type ("sizeof", yyvsp[-1].ftype); ; break;} case 225: -#line 1108 "parse.y" +#line 1117 "parse.y" { yyval.ttype = grok_alignof (yyvsp[0].ttype); ; break;} case 226: -#line 1110 "parse.y" +#line 1119 "parse.y" { yyval.ttype = c_alignof (groktypename (yyvsp[-1].ftype.t)); check_for_new_type ("alignof", yyvsp[-1].ftype); ; break;} case 227: -#line 1116 "parse.y" +#line 1125 "parse.y" { yyval.ttype = build_new (NULL_TREE, yyvsp[0].ftype.t, NULL_TREE, yyvsp[-1].itype); check_for_new_type ("new", yyvsp[0].ftype); ; break;} case 228: -#line 1119 "parse.y" +#line 1128 "parse.y" { yyval.ttype = build_new (NULL_TREE, yyvsp[-1].ftype.t, yyvsp[0].ttype, yyvsp[-2].itype); check_for_new_type ("new", yyvsp[-1].ftype); ; break;} case 229: -#line 1122 "parse.y" +#line 1131 "parse.y" { yyval.ttype = build_new (yyvsp[-1].ttype, yyvsp[0].ftype.t, NULL_TREE, yyvsp[-2].itype); check_for_new_type ("new", yyvsp[0].ftype); ; break;} case 230: -#line 1125 "parse.y" +#line 1134 "parse.y" { yyval.ttype = build_new (yyvsp[-2].ttype, yyvsp[-1].ftype.t, yyvsp[0].ttype, yyvsp[-3].itype); check_for_new_type ("new", yyvsp[-1].ftype); ; break;} case 231: -#line 1129 "parse.y" +#line 1138 "parse.y" { yyval.ttype = build_new (NULL_TREE, groktypename(yyvsp[-1].ftype.t), NULL_TREE, yyvsp[-3].itype); check_for_new_type ("new", yyvsp[-1].ftype); ; break;} case 232: -#line 1133 "parse.y" +#line 1142 "parse.y" { yyval.ttype = build_new (NULL_TREE, groktypename(yyvsp[-2].ftype.t), yyvsp[0].ttype, yyvsp[-4].itype); check_for_new_type ("new", yyvsp[-2].ftype); ; break;} case 233: -#line 1136 "parse.y" +#line 1145 "parse.y" { yyval.ttype = build_new (yyvsp[-3].ttype, groktypename(yyvsp[-1].ftype.t), NULL_TREE, yyvsp[-4].itype); check_for_new_type ("new", yyvsp[-1].ftype); ; break;} case 234: -#line 1139 "parse.y" +#line 1148 "parse.y" { yyval.ttype = build_new (yyvsp[-4].ttype, groktypename(yyvsp[-2].ftype.t), yyvsp[0].ttype, yyvsp[-5].itype); check_for_new_type ("new", yyvsp[-2].ftype); ; break;} case 235: -#line 1143 "parse.y" +#line 1152 "parse.y" { yyval.ttype = delete_sanity (yyvsp[0].ttype, NULL_TREE, 0, yyvsp[-1].itype); ; break;} case 236: -#line 1145 "parse.y" +#line 1154 "parse.y" { yyval.ttype = delete_sanity (yyvsp[0].ttype, NULL_TREE, 1, yyvsp[-3].itype); if (yychar == YYEMPTY) yychar = YYLEX; ; break;} case 237: -#line 1149 "parse.y" +#line 1158 "parse.y" { yyval.ttype = delete_sanity (yyvsp[0].ttype, yyvsp[-2].ttype, 2, yyvsp[-4].itype); if (yychar == YYEMPTY) yychar = YYLEX; ; break;} case 238: -#line 1153 "parse.y" +#line 1162 "parse.y" { yyval.ttype = build_x_unary_op (REALPART_EXPR, yyvsp[0].ttype); ; break;} case 239: -#line 1155 "parse.y" +#line 1164 "parse.y" { yyval.ttype = build_x_unary_op (IMAGPART_EXPR, yyvsp[0].ttype); ; break;} case 240: -#line 1157 "parse.y" +#line 1166 "parse.y" { yyval.ttype = build_x_va_arg (yyvsp[-3].ttype, groktypename (yyvsp[-1].ftype.t)); check_for_new_type ("__builtin_va_arg", yyvsp[-1].ftype); ; break;} case 241: -#line 1163 "parse.y" +#line 1172 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 242: -#line 1165 "parse.y" +#line 1174 "parse.y" { cp_pedwarn ("old style placement syntax, use () instead"); yyval.ttype = yyvsp[-1].ttype; ; break;} case 243: -#line 1171 "parse.y" +#line 1180 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 244: -#line 1173 "parse.y" +#line 1182 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 245: -#line 1175 "parse.y" +#line 1184 "parse.y" { cp_error ("`%T' is not a valid expression", yyvsp[-1].ftype.t); yyval.ttype = error_mark_node; ; break;} case 246: -#line 1183 "parse.y" +#line 1192 "parse.y" { if (pedantic) pedwarn ("ANSI C++ forbids initialization of new expression with `='"); @@ -5444,23 +5453,23 @@ case 246: ; break;} case 247: -#line 1197 "parse.y" +#line 1206 "parse.y" { yyvsp[-1].ftype.t = finish_parmlist (build_tree_list (NULL_TREE, yyvsp[-1].ftype.t), 0); yyval.ttype = make_call_declarator (NULL_TREE, yyvsp[-1].ftype.t, NULL_TREE, NULL_TREE); check_for_new_type ("cast", yyvsp[-1].ftype); ; break;} case 248: -#line 1201 "parse.y" +#line 1210 "parse.y" { yyvsp[-1].ftype.t = finish_parmlist (build_tree_list (NULL_TREE, yyvsp[-1].ftype.t), 0); yyval.ttype = make_call_declarator (yyval.ttype, yyvsp[-1].ftype.t, NULL_TREE, NULL_TREE); check_for_new_type ("cast", yyvsp[-1].ftype); ; break;} case 250: -#line 1209 "parse.y" +#line 1218 "parse.y" { yyval.ttype = reparse_absdcl_as_casts (yyval.ttype, yyvsp[0].ttype); ; break;} case 251: -#line 1211 "parse.y" +#line 1220 "parse.y" { tree init = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); @@ -5473,113 +5482,113 @@ case 251: ; break;} case 253: -#line 1227 "parse.y" +#line 1236 "parse.y" { yyval.ttype = build_x_binary_op (MEMBER_REF, yyval.ttype, yyvsp[0].ttype); ; break;} case 254: -#line 1229 "parse.y" +#line 1238 "parse.y" { yyval.ttype = build_m_component_ref (yyval.ttype, yyvsp[0].ttype); ; break;} case 255: -#line 1231 "parse.y" +#line 1240 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 256: -#line 1233 "parse.y" +#line 1242 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 257: -#line 1235 "parse.y" +#line 1244 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 258: -#line 1237 "parse.y" +#line 1246 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 259: -#line 1239 "parse.y" +#line 1248 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 260: -#line 1241 "parse.y" +#line 1250 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 261: -#line 1243 "parse.y" +#line 1252 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 262: -#line 1245 "parse.y" +#line 1254 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 263: -#line 1247 "parse.y" +#line 1256 "parse.y" { yyval.ttype = build_x_binary_op (LT_EXPR, yyval.ttype, yyvsp[0].ttype); ; break;} case 264: -#line 1249 "parse.y" +#line 1258 "parse.y" { yyval.ttype = build_x_binary_op (GT_EXPR, yyval.ttype, yyvsp[0].ttype); ; break;} case 265: -#line 1251 "parse.y" +#line 1260 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 266: -#line 1253 "parse.y" +#line 1262 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 267: -#line 1255 "parse.y" +#line 1264 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 268: -#line 1257 "parse.y" +#line 1266 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 269: -#line 1259 "parse.y" +#line 1268 "parse.y" { yyval.ttype = build_x_binary_op (yyvsp[-1].code, yyval.ttype, yyvsp[0].ttype); ; break;} case 270: -#line 1261 "parse.y" +#line 1270 "parse.y" { yyval.ttype = build_x_binary_op (TRUTH_ANDIF_EXPR, yyval.ttype, yyvsp[0].ttype); ; break;} case 271: -#line 1263 "parse.y" +#line 1272 "parse.y" { yyval.ttype = build_x_binary_op (TRUTH_ORIF_EXPR, yyval.ttype, yyvsp[0].ttype); ; break;} case 272: -#line 1265 "parse.y" +#line 1274 "parse.y" { yyval.ttype = build_x_conditional_expr (yyval.ttype, yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 273: -#line 1267 "parse.y" +#line 1276 "parse.y" { yyval.ttype = build_x_modify_expr (yyval.ttype, NOP_EXPR, yyvsp[0].ttype); if (yyval.ttype != error_mark_node) C_SET_EXP_ORIGINAL_CODE (yyval.ttype, MODIFY_EXPR); ; break;} case 274: -#line 1271 "parse.y" +#line 1280 "parse.y" { yyval.ttype = build_x_modify_expr (yyval.ttype, yyvsp[-1].code, yyvsp[0].ttype); ; break;} case 275: -#line 1273 "parse.y" +#line 1282 "parse.y" { yyval.ttype = build_throw (NULL_TREE); ; break;} case 276: -#line 1275 "parse.y" +#line 1284 "parse.y" { yyval.ttype = build_throw (yyvsp[0].ttype); ; break;} case 277: -#line 1293 "parse.y" +#line 1302 "parse.y" { yyval.ttype = build_parse_node (BIT_NOT_EXPR, yyvsp[0].ttype); ; break;} case 278: -#line 1295 "parse.y" +#line 1304 "parse.y" { yyval.ttype = build_parse_node (BIT_NOT_EXPR, yyvsp[0].ttype); ; break;} case 284: -#line 1304 "parse.y" +#line 1313 "parse.y" { /* If lastiddecl is a TREE_LIST, it's a baselink, which means that we're in an expression like S::f<int>, so @@ -5592,27 +5601,27 @@ case 284: ; break;} case 285: -#line 1317 "parse.y" +#line 1326 "parse.y" { yyval.ttype = lookup_template_function (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 286: -#line 1319 "parse.y" +#line 1328 "parse.y" { yyval.ttype = lookup_template_function (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 287: -#line 1324 "parse.y" +#line 1333 "parse.y" { yyval.ttype = lookup_template_function (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 288: -#line 1326 "parse.y" +#line 1335 "parse.y" { yyval.ttype = lookup_template_function (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 289: -#line 1329 "parse.y" +#line 1338 "parse.y" { yyval.ttype = lookup_template_function (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 294: -#line 1341 "parse.y" +#line 1350 "parse.y" { /* Provide support for '(' attributes '*' declarator ')' etc */ @@ -5620,31 +5629,31 @@ case 294: ; break;} case 296: -#line 1351 "parse.y" +#line 1360 "parse.y" { yyval.ttype = build_parse_node (INDIRECT_REF, yyvsp[0].ttype); ; break;} case 297: -#line 1353 "parse.y" +#line 1362 "parse.y" { yyval.ttype = build_parse_node (ADDR_EXPR, yyvsp[0].ttype); ; break;} case 298: -#line 1355 "parse.y" +#line 1364 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 299: -#line 1360 "parse.y" +#line 1369 "parse.y" { yyval.ttype = lookup_template_function (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 300: -#line 1362 "parse.y" +#line 1371 "parse.y" { yyval.ttype = lookup_template_function (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 304: -#line 1372 "parse.y" +#line 1381 "parse.y" { yyval.ttype = finish_decl_parsing (yyvsp[-1].ttype); ; break;} case 305: -#line 1377 "parse.y" +#line 1386 "parse.y" { if (TREE_CODE (yyvsp[0].ttype) == BIT_NOT_EXPR) yyval.ttype = build_x_unary_op (BIT_NOT_EXPR, TREE_OPERAND (yyvsp[0].ttype, 0)); @@ -5653,7 +5662,7 @@ case 305: ; break;} case 308: -#line 1386 "parse.y" +#line 1395 "parse.y" { yyval.ttype = combine_strings (yyval.ttype); /* combine_strings doesn't set up TYPE_MAIN_VARIANT of @@ -5665,20 +5674,20 @@ case 308: ; break;} case 309: -#line 1396 "parse.y" +#line 1405 "parse.y" { yyval.ttype = finish_parenthesized_expr (yyvsp[-1].ttype); ; break;} case 310: -#line 1398 "parse.y" +#line 1407 "parse.y" { yyvsp[-1].ttype = reparse_decl_as_expr (NULL_TREE, yyvsp[-1].ttype); yyval.ttype = finish_parenthesized_expr (yyvsp[-1].ttype); ; break;} case 311: -#line 1401 "parse.y" +#line 1410 "parse.y" { yyval.ttype = error_mark_node; ; break;} case 312: -#line 1403 "parse.y" +#line 1412 "parse.y" { tree scope = current_scope (); if (!scope || TREE_CODE (scope) != FUNCTION_DECL) { @@ -5691,43 +5700,43 @@ case 312: ; break;} case 313: -#line 1414 "parse.y" +#line 1423 "parse.y" { yyval.ttype = finish_stmt_expr (yyvsp[-2].ttype); ; break;} case 314: -#line 1419 "parse.y" +#line 1428 "parse.y" { yyval.ttype = finish_call_expr (yyvsp[-3].ttype, yyvsp[-1].ttype, 1); ; break;} case 315: -#line 1421 "parse.y" +#line 1430 "parse.y" { yyval.ttype = finish_call_expr (yyvsp[-1].ttype, NULL_TREE, 1); ; break;} case 316: -#line 1423 "parse.y" +#line 1432 "parse.y" { yyval.ttype = finish_call_expr (yyvsp[-3].ttype, yyvsp[-1].ttype, 0); ; break;} case 317: -#line 1425 "parse.y" +#line 1434 "parse.y" { yyval.ttype = finish_call_expr (yyvsp[-1].ttype, NULL_TREE, 0); ; break;} case 318: -#line 1427 "parse.y" +#line 1436 "parse.y" { yyval.ttype = grok_array_decl (yyval.ttype, yyvsp[-1].ttype); ; break;} case 319: -#line 1429 "parse.y" +#line 1438 "parse.y" { yyval.ttype = finish_increment_expr (yyvsp[-1].ttype, POSTINCREMENT_EXPR); ; break;} case 320: -#line 1431 "parse.y" +#line 1440 "parse.y" { yyval.ttype = finish_increment_expr (yyvsp[-1].ttype, POSTDECREMENT_EXPR); ; break;} case 321: -#line 1434 "parse.y" +#line 1443 "parse.y" { yyval.ttype = finish_this_expr (); ; break;} case 322: -#line 1436 "parse.y" +#line 1445 "parse.y" { /* This is a C cast in C++'s `functional' notation using the "implicit int" extension so that: @@ -5740,49 +5749,49 @@ case 322: ; break;} case 324: -#line 1448 "parse.y" +#line 1457 "parse.y" { tree type = groktypename (yyvsp[-4].ftype.t); check_for_new_type ("dynamic_cast", yyvsp[-4].ftype); yyval.ttype = build_dynamic_cast (type, yyvsp[-1].ttype); ; break;} case 325: -#line 1452 "parse.y" +#line 1461 "parse.y" { tree type = groktypename (yyvsp[-4].ftype.t); check_for_new_type ("static_cast", yyvsp[-4].ftype); yyval.ttype = build_static_cast (type, yyvsp[-1].ttype); ; break;} case 326: -#line 1456 "parse.y" +#line 1465 "parse.y" { tree type = groktypename (yyvsp[-4].ftype.t); check_for_new_type ("reinterpret_cast", yyvsp[-4].ftype); yyval.ttype = build_reinterpret_cast (type, yyvsp[-1].ttype); ; break;} case 327: -#line 1460 "parse.y" +#line 1469 "parse.y" { tree type = groktypename (yyvsp[-4].ftype.t); check_for_new_type ("const_cast", yyvsp[-4].ftype); yyval.ttype = build_const_cast (type, yyvsp[-1].ttype); ; break;} case 328: -#line 1464 "parse.y" +#line 1473 "parse.y" { yyval.ttype = build_typeid (yyvsp[-1].ttype); ; break;} case 329: -#line 1466 "parse.y" +#line 1475 "parse.y" { tree type = groktypename (yyvsp[-1].ftype.t); check_for_new_type ("typeid", yyvsp[-1].ftype); yyval.ttype = get_typeid (TYPE_MAIN_VARIANT (type)); ; break;} case 330: -#line 1470 "parse.y" +#line 1479 "parse.y" { yyval.ttype = do_scoped_id (yyvsp[0].ttype, 1); ; break;} case 331: -#line 1472 "parse.y" +#line 1481 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 332: -#line 1474 "parse.y" +#line 1483 "parse.y" { got_scope = NULL_TREE; if (TREE_CODE (yyvsp[0].ttype) == IDENTIFIER_NODE) @@ -5792,102 +5801,102 @@ case 332: ; break;} case 333: -#line 1482 "parse.y" +#line 1491 "parse.y" { yyval.ttype = build_offset_ref (OP0 (yyval.ttype), OP1 (yyval.ttype)); ; break;} case 334: -#line 1484 "parse.y" +#line 1493 "parse.y" { yyval.ttype = finish_qualified_call_expr (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 335: -#line 1486 "parse.y" +#line 1495 "parse.y" { yyval.ttype = finish_qualified_call_expr (yyvsp[-1].ttype, NULL_TREE); ; break;} case 336: -#line 1488 "parse.y" +#line 1497 "parse.y" { yyval.ttype = build_x_component_ref (yyval.ttype, yyvsp[0].ttype, NULL_TREE, 1); ; break;} case 337: -#line 1492 "parse.y" +#line 1501 "parse.y" { yyval.ttype = finish_object_call_expr (yyvsp[-3].ttype, yyvsp[-4].ttype, yyvsp[-1].ttype); ; break;} case 338: -#line 1494 "parse.y" +#line 1503 "parse.y" { yyval.ttype = finish_object_call_expr (yyvsp[-1].ttype, yyvsp[-2].ttype, NULL_TREE); ; break;} case 339: -#line 1496 "parse.y" +#line 1505 "parse.y" { yyval.ttype = build_x_component_ref (yyval.ttype, yyvsp[0].ttype, NULL_TREE, 1); ; break;} case 340: -#line 1498 "parse.y" +#line 1507 "parse.y" { if (processing_template_decl) yyval.ttype = build_min_nt (COMPONENT_REF, yyvsp[-1].ttype, yyvsp[0].ttype); else yyval.ttype = build_object_ref (yyval.ttype, OP0 (yyvsp[0].ttype), OP1 (yyvsp[0].ttype)); ; break;} case 341: -#line 1503 "parse.y" +#line 1512 "parse.y" { yyval.ttype = finish_object_call_expr (yyvsp[-3].ttype, yyvsp[-4].ttype, yyvsp[-1].ttype); ; break;} case 342: -#line 1505 "parse.y" +#line 1514 "parse.y" { yyval.ttype = finish_object_call_expr (yyvsp[-1].ttype, yyvsp[-2].ttype, NULL_TREE); ; break;} case 343: -#line 1507 "parse.y" +#line 1516 "parse.y" { yyval.ttype = finish_qualified_object_call_expr (yyvsp[-3].ttype, yyvsp[-4].ttype, yyvsp[-1].ttype); ; break;} case 344: -#line 1509 "parse.y" +#line 1518 "parse.y" { yyval.ttype = finish_qualified_object_call_expr (yyvsp[-1].ttype, yyvsp[-2].ttype, NULL_TREE); ; break;} case 345: -#line 1512 "parse.y" +#line 1521 "parse.y" { yyval.ttype = finish_pseudo_destructor_call_expr (yyvsp[-3].ttype, NULL_TREE, yyvsp[-1].ttype); ; break;} case 346: -#line 1514 "parse.y" +#line 1523 "parse.y" { yyval.ttype = finish_pseudo_destructor_call_expr (yyvsp[-5].ttype, yyvsp[-4].ttype, yyvsp[-1].ttype); ; break;} case 347: -#line 1516 "parse.y" +#line 1525 "parse.y" { yyval.ttype = error_mark_node; ; break;} case 348: -#line 1561 "parse.y" +#line 1570 "parse.y" { yyval.itype = 0; ; break;} case 349: -#line 1563 "parse.y" +#line 1572 "parse.y" { got_scope = NULL_TREE; yyval.itype = 1; ; break;} case 350: -#line 1568 "parse.y" +#line 1577 "parse.y" { yyval.itype = 0; ; break;} case 351: -#line 1570 "parse.y" +#line 1579 "parse.y" { got_scope = NULL_TREE; yyval.itype = 1; ; break;} case 352: -#line 1575 "parse.y" +#line 1584 "parse.y" { yyval.ttype = boolean_true_node; ; break;} case 353: -#line 1577 "parse.y" +#line 1586 "parse.y" { yyval.ttype = boolean_false_node; ; break;} case 355: -#line 1584 "parse.y" +#line 1593 "parse.y" { yyval.ttype = chainon (yyval.ttype, yyvsp[0].ttype); ; break;} case 356: -#line 1589 "parse.y" +#line 1598 "parse.y" { if (! current_function_parms_stored) store_parm_decls (); @@ -5895,169 +5904,169 @@ case 356: ; break;} case 357: -#line 1598 "parse.y" +#line 1607 "parse.y" { got_object = TREE_TYPE (yyval.ttype); ; break;} case 358: -#line 1600 "parse.y" +#line 1609 "parse.y" { yyval.ttype = build_x_arrow (yyval.ttype); got_object = TREE_TYPE (yyval.ttype); ; break;} case 359: -#line 1608 "parse.y" +#line 1617 "parse.y" { if (yyvsp[-2].ftype.t && IS_AGGR_TYPE_CODE (TREE_CODE (yyvsp[-2].ftype.t))) note_got_semicolon (yyvsp[-2].ftype.t); ; break;} case 360: -#line 1613 "parse.y" +#line 1622 "parse.y" { note_list_got_semicolon (yyvsp[-2].ftype.t); ; break;} case 361: -#line 1617 "parse.y" +#line 1626 "parse.y" {; break;} case 362: -#line 1619 "parse.y" +#line 1628 "parse.y" { shadow_tag (yyvsp[-1].ftype.t); note_list_got_semicolon (yyvsp[-1].ftype.t); ; break;} case 363: -#line 1624 "parse.y" +#line 1633 "parse.y" { warning ("empty declaration"); ; break;} case 364: -#line 1626 "parse.y" +#line 1635 "parse.y" { pedantic = yyvsp[-1].itype; ; break;} case 367: -#line 1640 "parse.y" +#line 1649 "parse.y" { yyval.ttype = make_call_declarator (NULL_TREE, empty_parms (), NULL_TREE, NULL_TREE); ; break;} case 368: -#line 1643 "parse.y" +#line 1652 "parse.y" { yyval.ttype = make_call_declarator (yyval.ttype, empty_parms (), NULL_TREE, NULL_TREE); ; break;} case 369: -#line 1650 "parse.y" +#line 1659 "parse.y" { yyval.ftype.t = build_decl_list (yyvsp[-1].ftype.t, yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 370: -#line 1653 "parse.y" +#line 1662 "parse.y" { yyval.ftype.t = build_decl_list (yyvsp[-1].ftype.t, yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 371: -#line 1656 "parse.y" +#line 1665 "parse.y" { yyval.ftype.t = build_decl_list (build_decl_list (NULL_TREE, yyvsp[-1].ftype.t), yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 372: -#line 1660 "parse.y" +#line 1669 "parse.y" { yyval.ftype.t = build_decl_list (yyvsp[0].ftype.t, NULL_TREE); yyval.ftype.new_type_flag = yyvsp[0].ftype.new_type_flag; ; break;} case 373: -#line 1663 "parse.y" +#line 1672 "parse.y" { yyval.ftype.t = build_decl_list (yyvsp[0].ftype.t, NULL_TREE); yyval.ftype.new_type_flag = yyvsp[0].ftype.new_type_flag; ; break;} case 374: -#line 1674 "parse.y" +#line 1683 "parse.y" { yyval.ftype.lookups = type_lookups; ; break;} case 375: -#line 1676 "parse.y" +#line 1685 "parse.y" { yyval.ftype.lookups = type_lookups; ; break;} case 376: -#line 1681 "parse.y" +#line 1690 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[0].ftype.t, yyvsp[-1].ftype.t); yyval.ftype.new_type_flag = yyvsp[0].ftype.new_type_flag; ; break;} case 377: -#line 1684 "parse.y" +#line 1693 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[-1].ftype.t, yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 378: -#line 1687 "parse.y" +#line 1696 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[-2].ftype.t, chainon (yyvsp[-1].ttype, yyvsp[0].ttype)); yyval.ftype.new_type_flag = yyvsp[-2].ftype.new_type_flag; ; break;} case 379: -#line 1690 "parse.y" +#line 1699 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[-1].ftype.t, chainon (yyvsp[0].ttype, yyvsp[-2].ftype.t)); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 380: -#line 1693 "parse.y" +#line 1702 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[-1].ftype.t, chainon (yyvsp[0].ttype, yyvsp[-2].ftype.t)); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 381: -#line 1696 "parse.y" +#line 1705 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[-2].ftype.t, chainon (yyvsp[-1].ttype, chainon (yyvsp[0].ttype, yyvsp[-3].ftype.t))); yyval.ftype.new_type_flag = yyvsp[-2].ftype.new_type_flag; ; break;} case 382: -#line 1703 "parse.y" +#line 1712 "parse.y" { if (extra_warnings) warning ("`%s' is not at beginning of declaration", IDENTIFIER_POINTER (yyval.ttype)); yyval.ttype = build_decl_list (NULL_TREE, yyval.ttype); ; break;} case 383: -#line 1708 "parse.y" +#line 1717 "parse.y" { yyval.ttype = decl_tree_cons (NULL_TREE, yyvsp[0].ftype.t, yyval.ttype); ; break;} case 384: -#line 1710 "parse.y" +#line 1719 "parse.y" { if (extra_warnings) warning ("`%s' is not at beginning of declaration", IDENTIFIER_POINTER (yyvsp[0].ttype)); yyval.ttype = decl_tree_cons (NULL_TREE, yyvsp[0].ttype, yyval.ttype); ; break;} case 385: -#line 1715 "parse.y" +#line 1724 "parse.y" { yyval.ttype = decl_tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ttype); ; break;} case 386: -#line 1717 "parse.y" +#line 1726 "parse.y" { yyval.ttype = decl_tree_cons (yyvsp[0].ttype, NULL_TREE, NULL_TREE); ; break;} case 387: -#line 1736 "parse.y" +#line 1745 "parse.y" { yyval.ftype.lookups = NULL_TREE; TREE_STATIC (yyval.ftype.t) = 1; ; break;} case 388: -#line 1738 "parse.y" +#line 1747 "parse.y" { yyval.ftype.t = hash_tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); yyval.ftype.new_type_flag = 0; yyval.ftype.lookups = NULL_TREE; ; break;} case 389: -#line 1743 "parse.y" +#line 1752 "parse.y" { yyval.ftype.t = hash_tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ftype.t); TREE_STATIC (yyval.ftype.t) = 1; ; break;} case 390: -#line 1748 "parse.y" +#line 1757 "parse.y" { if (extra_warnings && TREE_STATIC (yyval.ftype.t)) warning ("`%s' is not at beginning of declaration", @@ -6067,68 +6076,68 @@ case 390: ; break;} case 391: -#line 1756 "parse.y" +#line 1765 "parse.y" { yyval.ftype.t = hash_tree_cons (yyvsp[0].ttype, NULL_TREE, yyvsp[-1].ftype.t); ; break;} case 392: -#line 1758 "parse.y" +#line 1767 "parse.y" { yyval.ftype.t = hash_tree_cons (yyvsp[0].ttype, NULL_TREE, NULL_TREE); yyval.ftype.new_type_flag = 0; yyval.ftype.lookups = NULL_TREE; ; break;} case 393: -#line 1772 "parse.y" +#line 1781 "parse.y" { yyval.ftype.t = build_decl_list (NULL_TREE, yyvsp[0].ftype.t); yyval.ftype.new_type_flag = yyvsp[0].ftype.new_type_flag; ; break;} case 394: -#line 1775 "parse.y" +#line 1784 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[0].ftype.t, yyvsp[-1].ftype.t); yyval.ftype.new_type_flag = yyvsp[0].ftype.new_type_flag; ; break;} case 395: -#line 1778 "parse.y" +#line 1787 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[-1].ftype.t, yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 396: -#line 1781 "parse.y" +#line 1790 "parse.y" { yyval.ftype.t = decl_tree_cons (NULL_TREE, yyvsp[-1].ftype.t, chainon (yyvsp[0].ttype, yyvsp[-2].ftype.t)); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 397: -#line 1787 "parse.y" +#line 1796 "parse.y" { yyval.ttype = build_decl_list (NULL_TREE, yyvsp[0].ftype.t); ; break;} case 398: -#line 1789 "parse.y" +#line 1798 "parse.y" { yyval.ttype = decl_tree_cons (NULL_TREE, yyvsp[0].ftype.t, yyvsp[-1].ttype); ; break;} case 399: -#line 1798 "parse.y" +#line 1807 "parse.y" { yyval.ftype.lookups = NULL_TREE; ; break;} case 400: -#line 1800 "parse.y" +#line 1809 "parse.y" { yyval.ftype.t = yyvsp[0].ttype; yyval.ftype.new_type_flag = 0; yyval.ftype.lookups = NULL_TREE; ; break;} case 401: -#line 1802 "parse.y" +#line 1811 "parse.y" { yyval.ftype.t = yyvsp[0].ttype; yyval.ftype.new_type_flag = 0; yyval.ftype.lookups = NULL_TREE; ; break;} case 402: -#line 1804 "parse.y" +#line 1813 "parse.y" { yyval.ftype.t = finish_typeof (yyvsp[-1].ttype); yyval.ftype.new_type_flag = 0; yyval.ftype.lookups = NULL_TREE; ; break;} case 403: -#line 1807 "parse.y" +#line 1816 "parse.y" { yyval.ftype.t = groktypename (yyvsp[-1].ftype.t); yyval.ftype.new_type_flag = 0; yyval.ftype.lookups = NULL_TREE; ; break;} case 404: -#line 1810 "parse.y" +#line 1819 "parse.y" { tree type = TREE_TYPE (yyvsp[-1].ttype); yyval.ftype.new_type_flag = 0; yyval.ftype.lookups = NULL_TREE; @@ -6145,7 +6154,7 @@ case 404: ; break;} case 405: -#line 1825 "parse.y" +#line 1834 "parse.y" { tree type = groktypename (yyvsp[-1].ftype.t); yyval.ftype.new_type_flag = 0; yyval.ftype.lookups = NULL_TREE; @@ -6162,35 +6171,35 @@ case 405: ; break;} case 406: -#line 1845 "parse.y" +#line 1854 "parse.y" { yyval.ftype.t = yyvsp[0].ttype; yyval.ftype.new_type_flag = 0; ; break;} case 407: -#line 1847 "parse.y" +#line 1856 "parse.y" { yyval.ftype.t = yyvsp[0].ttype; yyval.ftype.new_type_flag = 0; ; break;} case 410: -#line 1854 "parse.y" +#line 1863 "parse.y" { check_multiple_declarators (); ; break;} case 412: -#line 1860 "parse.y" +#line 1869 "parse.y" { check_multiple_declarators (); ; break;} case 414: -#line 1866 "parse.y" +#line 1875 "parse.y" { check_multiple_declarators (); ; break;} case 415: -#line 1871 "parse.y" +#line 1880 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 416: -#line 1873 "parse.y" +#line 1882 "parse.y" { if (TREE_CHAIN (yyvsp[-1].ttype)) yyvsp[-1].ttype = combine_strings (yyvsp[-1].ttype); yyval.ttype = yyvsp[-1].ttype; ; break;} case 417: -#line 1878 "parse.y" +#line 1887 "parse.y" { deferred_type_access_control (); yyval.ttype = start_decl (yyvsp[-3].ttype, current_declspecs, 1, @@ -6198,11 +6207,11 @@ case 417: ; break;} case 418: -#line 1885 "parse.y" +#line 1894 "parse.y" { cp_finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype, LOOKUP_ONLYCONVERTING); ; break;} case 419: -#line 1887 "parse.y" +#line 1896 "parse.y" { deferred_type_access_control (); yyval.ttype = start_decl (yyvsp[-2].ttype, current_declspecs, 0, @@ -6211,239 +6220,239 @@ case 419: ; break;} case 420: -#line 1903 "parse.y" +#line 1912 "parse.y" { parse_decl (yyvsp[-3].ttype, yyvsp[-4].ftype.t, yyvsp[-4].ftype.lookups, yyvsp[-1].ttype, 1, &yyval.ttype); ; break;} case 421: -#line 1908 "parse.y" +#line 1917 "parse.y" { cp_finish_decl (yyvsp[-1].ttype, yyvsp[0].ttype, yyvsp[-4].ttype, LOOKUP_ONLYCONVERTING); ; break;} case 422: -#line 1911 "parse.y" +#line 1920 "parse.y" { tree d; parse_decl (yyvsp[-2].ttype, yyvsp[-3].ftype.t, yyvsp[-3].ftype.lookups, yyvsp[0].ttype, 0, &d); cp_finish_decl (d, NULL_TREE, yyvsp[-1].ttype, 0); ; break;} case 423: -#line 1919 "parse.y" +#line 1928 "parse.y" {; break;} case 424: -#line 1924 "parse.y" +#line 1933 "parse.y" {; break;} case 425: -#line 1929 "parse.y" +#line 1938 "parse.y" { /* Set things up as initdcl0_innards expects. */ yyvsp[0].ttype = yyvsp[-1].ttype; yyvsp[-1].ttype = NULL_TREE; ; break;} case 426: -#line 1933 "parse.y" +#line 1942 "parse.y" {; break;} case 427: -#line 1935 "parse.y" +#line 1944 "parse.y" { tree d; parse_decl (yyvsp[-2].ttype, NULL_TREE, NULL_TREE, yyvsp[0].ttype, 0, &d); cp_finish_decl (d, NULL_TREE, yyvsp[-1].ttype, 0); ; break;} case 428: -#line 1944 "parse.y" +#line 1953 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 429: -#line 1946 "parse.y" +#line 1955 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 430: -#line 1951 "parse.y" +#line 1960 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 431: -#line 1953 "parse.y" +#line 1962 "parse.y" { yyval.ttype = chainon (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 432: -#line 1958 "parse.y" +#line 1967 "parse.y" { yyval.ttype = yyvsp[-2].ttype; ; break;} case 433: -#line 1963 "parse.y" +#line 1972 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 434: -#line 1965 "parse.y" +#line 1974 "parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 435: -#line 1970 "parse.y" +#line 1979 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 436: -#line 1972 "parse.y" +#line 1981 "parse.y" { yyval.ttype = build_tree_list (yyvsp[0].ttype, NULL_TREE); ; break;} case 437: -#line 1974 "parse.y" +#line 1983 "parse.y" { yyval.ttype = build_tree_list (yyvsp[-3].ttype, build_tree_list (NULL_TREE, yyvsp[-1].ttype)); ; break;} case 438: -#line 1976 "parse.y" +#line 1985 "parse.y" { yyval.ttype = build_tree_list (yyvsp[-5].ttype, tree_cons (NULL_TREE, yyvsp[-3].ttype, yyvsp[-1].ttype)); ; break;} case 439: -#line 1978 "parse.y" +#line 1987 "parse.y" { yyval.ttype = build_tree_list (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 444: -#line 1994 "parse.y" +#line 2003 "parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ttype); ; break;} case 445: -#line 1996 "parse.y" +#line 2005 "parse.y" { yyval.ttype = chainon (yyvsp[-2].ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 446: -#line 2001 "parse.y" +#line 2010 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 447: -#line 2003 "parse.y" +#line 2012 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 449: -#line 2011 "parse.y" +#line 2020 "parse.y" { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, NULL_TREE); TREE_HAS_CONSTRUCTOR (yyval.ttype) = 1; ; break;} case 450: -#line 2014 "parse.y" +#line 2023 "parse.y" { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-1].ttype)); TREE_HAS_CONSTRUCTOR (yyval.ttype) = 1; ; break;} case 451: -#line 2017 "parse.y" +#line 2026 "parse.y" { yyval.ttype = build_nt (CONSTRUCTOR, NULL_TREE, nreverse (yyvsp[-2].ttype)); TREE_HAS_CONSTRUCTOR (yyval.ttype) = 1; ; break;} case 452: -#line 2020 "parse.y" +#line 2029 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 453: -#line 2027 "parse.y" +#line 2036 "parse.y" { yyval.ttype = build_tree_list (NULL_TREE, yyval.ttype); ; break;} case 454: -#line 2029 "parse.y" +#line 2038 "parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyval.ttype); ; break;} case 455: -#line 2032 "parse.y" +#line 2041 "parse.y" { yyval.ttype = build_tree_list (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 456: -#line 2034 "parse.y" +#line 2043 "parse.y" { yyval.ttype = build_tree_list (yyval.ttype, yyvsp[0].ttype); ; break;} case 457: -#line 2036 "parse.y" +#line 2045 "parse.y" { yyval.ttype = tree_cons (yyvsp[-2].ttype, yyvsp[0].ttype, yyval.ttype); ; break;} case 458: -#line 2041 "parse.y" +#line 2050 "parse.y" { start_function (NULL_TREE, yyvsp[0].pi->fndecl, NULL_TREE, (SF_DEFAULT | SF_PRE_PARSED | SF_INCLASS_INLINE)); reinit_parse_for_function (); ; break;} case 459: -#line 2048 "parse.y" +#line 2057 "parse.y" { expand_body (finish_function (lineno, (int)yyvsp[-1].itype | 2)); process_next_inline (yyvsp[-3].pi); ; break;} case 460: -#line 2053 "parse.y" +#line 2062 "parse.y" { expand_body (finish_function (lineno, (int)yyvsp[0].itype | 2)); process_next_inline (yyvsp[-2].pi); ; break;} case 461: -#line 2058 "parse.y" +#line 2067 "parse.y" { finish_function (lineno, 2); process_next_inline (yyvsp[-2].pi); ; break;} case 464: -#line 2072 "parse.y" +#line 2081 "parse.y" { replace_defarg (yyvsp[-2].ttype, yyvsp[-1].ttype); ; break;} case 465: -#line 2074 "parse.y" +#line 2083 "parse.y" { replace_defarg (yyvsp[-2].ttype, error_mark_node); ; break;} case 467: -#line 2079 "parse.y" +#line 2088 "parse.y" { do_pending_defargs (); ; break;} case 468: -#line 2081 "parse.y" +#line 2090 "parse.y" { do_pending_defargs (); ; break;} case 469: -#line 2086 "parse.y" +#line 2095 "parse.y" { yyval.ttype = current_enum_type; current_enum_type = start_enum (yyvsp[-1].ttype); ; break;} case 470: -#line 2089 "parse.y" +#line 2098 "parse.y" { yyval.ftype.t = finish_enum (current_enum_type); yyval.ftype.new_type_flag = 1; current_enum_type = yyvsp[-2].ttype; check_for_missing_semicolon (yyval.ftype.t); ; break;} case 471: -#line 2094 "parse.y" +#line 2103 "parse.y" { yyval.ttype = current_enum_type; current_enum_type = start_enum (make_anon_name ()); ; break;} case 472: -#line 2097 "parse.y" +#line 2106 "parse.y" { yyval.ftype.t = finish_enum (current_enum_type); yyval.ftype.new_type_flag = 1; current_enum_type = yyvsp[-2].ttype; check_for_missing_semicolon (yyval.ftype.t); ; break;} case 473: -#line 2102 "parse.y" +#line 2111 "parse.y" { yyval.ftype.t = xref_tag (enum_type_node, yyvsp[0].ttype, 1); yyval.ftype.new_type_flag = 0; ; break;} case 474: -#line 2105 "parse.y" +#line 2114 "parse.y" { yyval.ftype.t = xref_tag (enum_type_node, yyvsp[0].ttype, 1); yyval.ftype.new_type_flag = 0; ; break;} case 475: -#line 2108 "parse.y" +#line 2117 "parse.y" { yyval.ftype.t = yyvsp[0].ttype; yyval.ftype.new_type_flag = 0; if (!processing_template_decl) cp_pedwarn ("using `typename' outside of template"); ; break;} case 476: -#line 2114 "parse.y" +#line 2123 "parse.y" { yyvsp[-1].ftype.t = begin_class_definition (yyvsp[-1].ftype.t); ; break;} case 477: -#line 2116 "parse.y" +#line 2125 "parse.y" { int semi; @@ -6456,13 +6465,13 @@ case 477: ; break;} case 478: -#line 2127 "parse.y" +#line 2136 "parse.y" { begin_inline_definitions (); ; break;} case 479: -#line 2131 "parse.y" +#line 2140 "parse.y" { finish_inline_definitions (); yyval.ftype.t = yyvsp[-3].ttype; @@ -6470,7 +6479,7 @@ case 479: ; break;} case 480: -#line 2137 "parse.y" +#line 2146 "parse.y" { if (yyvsp[0].ftype.new_type_flag && yyvsp[0].ftype.t != error_mark_node) pop_scope (CP_DECL_CONTEXT (TYPE_MAIN_DECL (yyvsp[0].ftype.t))); @@ -6496,51 +6505,51 @@ case 480: ; break;} case 484: -#line 2170 "parse.y" +#line 2179 "parse.y" { if (pedantic && !in_system_header) pedwarn ("comma at end of enumerator list"); ; break;} case 486: -#line 2177 "parse.y" +#line 2186 "parse.y" { error ("storage class specifier `%s' not allowed after struct or class", IDENTIFIER_POINTER (yyvsp[0].ttype)); ; break;} case 487: -#line 2179 "parse.y" +#line 2188 "parse.y" { error ("type specifier `%s' not allowed after struct or class", IDENTIFIER_POINTER (yyvsp[0].ttype)); ; break;} case 488: -#line 2181 "parse.y" +#line 2190 "parse.y" { error ("type qualifier `%s' not allowed after struct or class", IDENTIFIER_POINTER (yyvsp[0].ttype)); ; break;} case 489: -#line 2183 "parse.y" +#line 2192 "parse.y" { error ("no body nor ';' separates two class, struct or union declarations"); ; break;} case 490: -#line 2185 "parse.y" +#line 2194 "parse.y" { yyval.ttype = build_decl_list (yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 491: -#line 2190 "parse.y" +#line 2199 "parse.y" { current_aggr = yyvsp[-1].ttype; yyval.ttype = yyvsp[0].ttype; ; break;} case 492: -#line 2198 "parse.y" +#line 2207 "parse.y" { current_aggr = yyval.ttype; yyval.ttype = yyvsp[0].ttype; ; break;} case 493: -#line 2200 "parse.y" +#line 2209 "parse.y" { yyungetc ('{', 1); ; break;} case 494: -#line 2202 "parse.y" +#line 2211 "parse.y" { yyungetc (':', 1); ; break;} case 495: -#line 2207 "parse.y" +#line 2216 "parse.y" { current_aggr = yyvsp[-2].ttype; yyval.ftype.t = handle_class_head (yyvsp[-2].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); @@ -6548,7 +6557,7 @@ case 495: ; break;} case 496: -#line 2213 "parse.y" +#line 2222 "parse.y" { current_aggr = yyvsp[-3].ttype; yyval.ftype.t = handle_class_head (yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); @@ -6556,7 +6565,7 @@ case 496: ; break;} case 497: -#line 2219 "parse.y" +#line 2228 "parse.y" { current_aggr = yyvsp[-2].ttype; yyval.ftype.t = handle_class_head (yyvsp[-2].ttype, NULL_TREE, yyvsp[0].ttype); @@ -6564,7 +6573,7 @@ case 497: ; break;} case 498: -#line 2225 "parse.y" +#line 2234 "parse.y" { current_aggr = yyvsp[-1].ttype; yyval.ftype.t = yyvsp[0].ttype; @@ -6572,7 +6581,7 @@ case 498: ; break;} case 499: -#line 2231 "parse.y" +#line 2240 "parse.y" { current_aggr = yyvsp[-2].ttype; yyval.ftype.t = yyvsp[0].ttype; @@ -6582,18 +6591,18 @@ case 499: ; break;} case 500: -#line 2242 "parse.y" +#line 2251 "parse.y" { yyval.ftype.t = xref_tag (current_aggr, yyvsp[0].ttype, 1); yyval.ftype.new_type_flag = 0; ; break;} case 501: -#line 2247 "parse.y" +#line 2256 "parse.y" { yyval.ttype = xref_tag (current_aggr, yyvsp[0].ttype, 0); ; break;} case 502: -#line 2251 "parse.y" +#line 2260 "parse.y" { yyval.ftype.t = yyvsp[-1].ttype; yyval.ftype.new_type_flag = 0; @@ -6602,7 +6611,7 @@ case 502: ; break;} case 503: -#line 2259 "parse.y" +#line 2268 "parse.y" { if (yyvsp[-1].ftype.t != error_mark_node) { @@ -6629,43 +6638,43 @@ case 503: ; break;} case 504: -#line 2287 "parse.y" +#line 2296 "parse.y" { yyval.ttype = xref_tag (yyval.ttype, make_anon_name (), 0); yyungetc ('{', 1); ; break;} case 505: -#line 2297 "parse.y" +#line 2306 "parse.y" { yyval.ftype.t = yyvsp[0].ttype; yyval.ftype.new_type_flag = 0; ; break;} case 507: -#line 2306 "parse.y" +#line 2315 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 508: -#line 2308 "parse.y" +#line 2317 "parse.y" { yyungetc(':', 1); yyval.ttype = NULL_TREE; ; break;} case 509: -#line 2310 "parse.y" +#line 2319 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 511: -#line 2316 "parse.y" +#line 2325 "parse.y" { yyval.ttype = chainon (yyval.ttype, yyvsp[0].ttype); ; break;} case 512: -#line 2321 "parse.y" +#line 2330 "parse.y" { yyval.ttype = finish_base_specifier (access_default_node, yyvsp[0].ttype); ; break;} case 513: -#line 2323 "parse.y" +#line 2332 "parse.y" { yyval.ttype = finish_base_specifier (yyvsp[-2].ttype, yyvsp[0].ttype); ; break;} case 514: -#line 2328 "parse.y" +#line 2337 "parse.y" { if (yyval.ttype == error_mark_node) ; else if (!TYPE_P (yyval.ttype)) @@ -6674,13 +6683,13 @@ case 514: yyval.ttype = TYPE_MAIN_DECL (yyvsp[0].ttype); ; break;} case 517: -#line 2340 "parse.y" +#line 2349 "parse.y" { if (yyvsp[-1].ttype != ridpointers[(int)RID_VIRTUAL]) cp_error ("`%D' access", yyvsp[-1].ttype); yyval.ttype = access_default_virtual_node; ; break;} case 518: -#line 2344 "parse.y" +#line 2353 "parse.y" { if (yyvsp[-2].ttype != access_default_virtual_node) error ("multiple access specifiers"); @@ -6693,7 +6702,7 @@ case 518: ; break;} case 519: -#line 2355 "parse.y" +#line 2364 "parse.y" { if (yyvsp[-1].ttype != ridpointers[(int)RID_VIRTUAL]) cp_error ("`%D' access", yyvsp[-1].ttype); else if (yyval.ttype == access_public_node) @@ -6707,55 +6716,55 @@ case 519: ; break;} case 524: -#line 2376 "parse.y" +#line 2385 "parse.y" { current_access_specifier = yyvsp[-1].ttype; ; break;} case 525: -#line 2385 "parse.y" +#line 2394 "parse.y" { finish_member_declaration (yyvsp[0].ttype); ; break;} case 526: -#line 2389 "parse.y" +#line 2398 "parse.y" { finish_member_declaration (yyvsp[0].ttype); ; break;} case 528: -#line 2397 "parse.y" +#line 2406 "parse.y" { error ("missing ';' before right brace"); yyungetc ('}', 0); ; break;} case 529: -#line 2402 "parse.y" +#line 2411 "parse.y" { yyval.ttype = finish_method (yyval.ttype); ; break;} case 530: -#line 2404 "parse.y" +#line 2413 "parse.y" { yyval.ttype = finish_method (yyval.ttype); ; break;} case 531: -#line 2406 "parse.y" +#line 2415 "parse.y" { yyval.ttype = finish_method (yyval.ttype); ; break;} case 532: -#line 2408 "parse.y" +#line 2417 "parse.y" { yyval.ttype = finish_method (yyval.ttype); ; break;} case 533: -#line 2410 "parse.y" +#line 2419 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 534: -#line 2412 "parse.y" +#line 2421 "parse.y" { yyval.ttype = yyvsp[0].ttype; pedantic = yyvsp[-1].itype; ; break;} case 535: -#line 2415 "parse.y" +#line 2424 "parse.y" { if (yyvsp[0].ttype) yyval.ttype = finish_member_template_decl (yyvsp[0].ttype); @@ -6767,14 +6776,14 @@ case 535: ; break;} case 536: -#line 2425 "parse.y" +#line 2434 "parse.y" { yyval.ttype = finish_member_class_template (yyvsp[-1].ftype.t); finish_template_decl (yyvsp[-2].ttype); ; break;} case 537: -#line 2436 "parse.y" +#line 2445 "parse.y" { /* Most of the productions for component_decl only allow the creation of one new member, so we call @@ -6797,7 +6806,7 @@ case 537: ; break;} case 538: -#line 2457 "parse.y" +#line 2466 "parse.y" { if (!yyvsp[0].itype) grok_x_components (yyvsp[-1].ftype.t); @@ -6805,45 +6814,45 @@ case 538: ; break;} case 539: -#line 2463 "parse.y" +#line 2472 "parse.y" { yyval.ttype = grokfield (yyval.ttype, NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, NULL_TREE)); ; break;} case 540: -#line 2466 "parse.y" +#line 2475 "parse.y" { yyval.ttype = grokfield (yyval.ttype, NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, NULL_TREE)); ; break;} case 541: -#line 2469 "parse.y" +#line 2478 "parse.y" { yyval.ttype = grokbitfield (NULL_TREE, NULL_TREE, yyvsp[0].ttype); ; break;} case 542: -#line 2471 "parse.y" +#line 2480 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 543: -#line 2482 "parse.y" +#line 2491 "parse.y" { tree specs, attrs; split_specs_attrs (yyvsp[-4].ftype.t, &specs, &attrs); yyval.ttype = grokfield (yyvsp[-3].ttype, specs, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, attrs)); ; break;} case 544: -#line 2487 "parse.y" +#line 2496 "parse.y" { yyval.ttype = grokfield (yyval.ttype, NULL_TREE, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, NULL_TREE)); ; break;} case 545: -#line 2490 "parse.y" +#line 2499 "parse.y" { yyval.ttype = do_class_using_decl (yyvsp[0].ttype); ; break;} case 546: -#line 2496 "parse.y" +#line 2505 "parse.y" { yyval.itype = 0; ; break;} case 547: -#line 2498 "parse.y" +#line 2507 "parse.y" { if (PROCESSING_REAL_TEMPLATE_DECL_P ()) yyvsp[0].ttype = finish_member_template_decl (yyvsp[0].ttype); @@ -6852,7 +6861,7 @@ case 547: ; break;} case 548: -#line 2505 "parse.y" +#line 2514 "parse.y" { check_multiple_declarators (); if (PROCESSING_REAL_TEMPLATE_DECL_P ()) @@ -6862,11 +6871,11 @@ case 548: ; break;} case 549: -#line 2516 "parse.y" +#line 2525 "parse.y" { yyval.itype = 0; ; break;} case 550: -#line 2518 "parse.y" +#line 2527 "parse.y" { if (PROCESSING_REAL_TEMPLATE_DECL_P ()) yyvsp[0].ttype = finish_member_template_decl (yyvsp[0].ttype); @@ -6875,7 +6884,7 @@ case 550: ; break;} case 551: -#line 2525 "parse.y" +#line 2534 "parse.y" { check_multiple_declarators (); if (PROCESSING_REAL_TEMPLATE_DECL_P ()) @@ -6885,98 +6894,86 @@ case 551: ; break;} case 556: -#line 2546 "parse.y" -{ split_specs_attrs (yyvsp[-4].ttype, ¤t_declspecs, - &prefix_attributes); - yyvsp[-4].ttype = current_declspecs; +#line 2555 "parse.y" +{ frob_specs (yyvsp[-4].ftype.t, yyvsp[-4].ftype.lookups); yyval.ttype = grokfield (yyval.ttype, current_declspecs, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, prefix_attributes)); ; break;} case 557: -#line 2552 "parse.y" -{ split_specs_attrs (yyvsp[-4].ttype, ¤t_declspecs, - &prefix_attributes); - yyvsp[-4].ttype = current_declspecs; +#line 2559 "parse.y" +{ frob_specs (yyvsp[-4].ftype.t, yyvsp[-4].ftype.lookups); yyval.ttype = grokbitfield (yyval.ttype, current_declspecs, yyvsp[-1].ttype); cplus_decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 558: -#line 2561 "parse.y" -{ split_specs_attrs (yyvsp[-4].ttype, ¤t_declspecs, - &prefix_attributes); - yyvsp[-4].ttype = current_declspecs; +#line 2566 "parse.y" +{ frob_specs (yyvsp[-4].ftype.t, yyvsp[-4].ftype.lookups); yyval.ttype = grokfield (yyval.ttype, current_declspecs, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, prefix_attributes)); ; break;} case 559: -#line 2567 "parse.y" -{ split_specs_attrs (yyvsp[-4].ttype, ¤t_declspecs, - &prefix_attributes); - yyvsp[-4].ttype = current_declspecs; +#line 2570 "parse.y" +{ frob_specs (yyvsp[-4].ftype.t, yyvsp[-4].ftype.lookups); yyval.ttype = grokfield (yyval.ttype, current_declspecs, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, prefix_attributes)); ; break;} case 560: -#line 2573 "parse.y" -{ split_specs_attrs (yyvsp[-4].ttype, ¤t_declspecs, - &prefix_attributes); - yyvsp[-4].ttype = current_declspecs; +#line 2574 "parse.y" +{ frob_specs (yyvsp[-4].ftype.t, yyvsp[-4].ftype.lookups); yyval.ttype = grokbitfield (yyval.ttype, current_declspecs, yyvsp[-1].ttype); cplus_decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 561: -#line 2579 "parse.y" -{ split_specs_attrs (yyvsp[-3].ttype, ¤t_declspecs, - &prefix_attributes); - yyvsp[-3].ttype = current_declspecs; +#line 2578 "parse.y" +{ frob_specs (yyvsp[-3].ftype.t, yyvsp[-3].ftype.lookups); yyval.ttype = grokbitfield (NULL_TREE, current_declspecs, yyvsp[-1].ttype); cplus_decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 562: -#line 2588 "parse.y" +#line 2585 "parse.y" { yyval.ttype = grokfield (yyval.ttype, current_declspecs, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, prefix_attributes)); ; break;} case 563: -#line 2591 "parse.y" +#line 2588 "parse.y" { yyval.ttype = grokbitfield (yyval.ttype, current_declspecs, yyvsp[-1].ttype); cplus_decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 564: -#line 2597 "parse.y" +#line 2594 "parse.y" { yyval.ttype = grokfield (yyval.ttype, current_declspecs, yyvsp[0].ttype, yyvsp[-2].ttype, build_tree_list (yyvsp[-1].ttype, prefix_attributes)); ; break;} case 565: -#line 2600 "parse.y" +#line 2597 "parse.y" { yyval.ttype = grokbitfield (yyval.ttype, current_declspecs, yyvsp[-1].ttype); cplus_decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 566: -#line 2603 "parse.y" +#line 2600 "parse.y" { yyval.ttype = grokbitfield (NULL_TREE, current_declspecs, yyvsp[-1].ttype); cplus_decl_attributes (yyval.ttype, yyvsp[0].ttype, prefix_attributes); ; break;} case 571: -#line 2623 "parse.y" +#line 2620 "parse.y" { build_enumerator (yyvsp[0].ttype, NULL_TREE, current_enum_type); ; break;} case 572: -#line 2625 "parse.y" +#line 2622 "parse.y" { build_enumerator (yyvsp[-2].ttype, yyvsp[0].ttype, current_enum_type); ; break;} case 573: -#line 2631 "parse.y" +#line 2628 "parse.y" { yyval.ftype.t = build_decl_list (yyvsp[-1].ftype.t, yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 574: -#line 2634 "parse.y" +#line 2631 "parse.y" { yyval.ftype.t = build_decl_list (yyvsp[0].ftype.t, NULL_TREE); yyval.ftype.new_type_flag = yyvsp[0].ftype.new_type_flag; ; break;} case 575: -#line 2639 "parse.y" +#line 2636 "parse.y" { if (pedantic) pedwarn ("ANSI C++ forbids array dimensions with parenthesized type in new"); @@ -6986,41 +6983,41 @@ case 575: ; break;} case 576: -#line 2650 "parse.y" +#line 2647 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 577: -#line 2652 "parse.y" +#line 2649 "parse.y" { yyval.ttype = decl_tree_cons (NULL_TREE, yyvsp[0].ttype, yyval.ttype); ; break;} case 578: -#line 2657 "parse.y" +#line 2654 "parse.y" { yyval.ftype.t = hash_tree_cons (NULL_TREE, yyvsp[0].ttype, NULL_TREE); yyval.ftype.new_type_flag = 0; ; break;} case 579: -#line 2660 "parse.y" +#line 2657 "parse.y" { yyval.ftype.t = hash_tree_cons (NULL_TREE, yyvsp[0].ttype, yyvsp[-1].ftype.t); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 580: -#line 2670 "parse.y" +#line 2667 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 581: -#line 2672 "parse.y" +#line 2669 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 582: -#line 2674 "parse.y" +#line 2671 "parse.y" { yyval.ttype = empty_parms (); ; break;} case 583: -#line 2676 "parse.y" +#line 2673 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 585: -#line 2684 "parse.y" +#line 2681 "parse.y" { /* Provide support for '(' attributes '*' declarator ')' etc */ @@ -7028,51 +7025,51 @@ case 585: ; break;} case 586: -#line 2694 "parse.y" +#line 2691 "parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 587: -#line 2696 "parse.y" +#line 2693 "parse.y" { yyval.ttype = make_reference_declarator (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 588: -#line 2698 "parse.y" +#line 2695 "parse.y" { yyval.ttype = make_pointer_declarator (NULL_TREE, yyvsp[0].ttype); ; break;} case 589: -#line 2700 "parse.y" +#line 2697 "parse.y" { yyval.ttype = make_reference_declarator (NULL_TREE, yyvsp[0].ttype); ; break;} case 590: -#line 2702 "parse.y" +#line 2699 "parse.y" { tree arg = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-2].ttype, arg); ; break;} case 592: -#line 2710 "parse.y" +#line 2707 "parse.y" { yyval.ttype = make_call_declarator (yyval.ttype, yyvsp[-2].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 593: -#line 2712 "parse.y" +#line 2709 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, yyval.ttype, yyvsp[-1].ttype); ; break;} case 594: -#line 2714 "parse.y" +#line 2711 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, yyval.ttype, NULL_TREE); ; break;} case 595: -#line 2716 "parse.y" +#line 2713 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 596: -#line 2718 "parse.y" +#line 2715 "parse.y" { push_nested_class (yyvsp[-1].ttype, 3); yyval.ttype = build_parse_node (SCOPE_REF, yyval.ttype, yyvsp[0].ttype); TREE_COMPLEXITY (yyval.ttype) = current_class_depth; ; break;} case 598: -#line 2726 "parse.y" +#line 2723 "parse.y" { if (TREE_CODE (yyvsp[0].ttype) == IDENTIFIER_NODE) { @@ -7084,7 +7081,7 @@ case 598: ; break;} case 599: -#line 2736 "parse.y" +#line 2733 "parse.y" { if (TREE_CODE (yyvsp[0].ttype) == IDENTIFIER_NODE) yyval.ttype = IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype); @@ -7094,15 +7091,15 @@ case 599: ; break;} case 602: -#line 2749 "parse.y" +#line 2746 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 603: -#line 2754 "parse.y" +#line 2751 "parse.y" { yyval.ttype = get_type_decl (yyvsp[0].ttype); ; break;} case 605: -#line 2763 "parse.y" +#line 2760 "parse.y" { /* Provide support for '(' attributes '*' declarator ')' etc */ @@ -7110,123 +7107,123 @@ case 605: ; break;} case 606: -#line 2772 "parse.y" +#line 2769 "parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 607: -#line 2774 "parse.y" +#line 2771 "parse.y" { yyval.ttype = make_reference_declarator (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 608: -#line 2776 "parse.y" +#line 2773 "parse.y" { yyval.ttype = make_pointer_declarator (NULL_TREE, yyvsp[0].ttype); ; break;} case 609: -#line 2778 "parse.y" +#line 2775 "parse.y" { yyval.ttype = make_reference_declarator (NULL_TREE, yyvsp[0].ttype); ; break;} case 610: -#line 2780 "parse.y" +#line 2777 "parse.y" { tree arg = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-2].ttype, arg); ; break;} case 612: -#line 2788 "parse.y" +#line 2785 "parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 613: -#line 2790 "parse.y" +#line 2787 "parse.y" { yyval.ttype = make_reference_declarator (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 614: -#line 2792 "parse.y" +#line 2789 "parse.y" { yyval.ttype = make_pointer_declarator (NULL_TREE, yyvsp[0].ttype); ; break;} case 615: -#line 2794 "parse.y" +#line 2791 "parse.y" { yyval.ttype = make_reference_declarator (NULL_TREE, yyvsp[0].ttype); ; break;} case 616: -#line 2796 "parse.y" +#line 2793 "parse.y" { tree arg = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-2].ttype, arg); ; break;} case 618: -#line 2804 "parse.y" +#line 2801 "parse.y" { yyval.ttype = make_call_declarator (yyval.ttype, yyvsp[-2].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 619: -#line 2806 "parse.y" +#line 2803 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 620: -#line 2808 "parse.y" +#line 2805 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, yyval.ttype, yyvsp[-1].ttype); ; break;} case 621: -#line 2810 "parse.y" +#line 2807 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, yyval.ttype, NULL_TREE); ; break;} case 622: -#line 2812 "parse.y" +#line 2809 "parse.y" { enter_scope_of (yyvsp[0].ttype); ; break;} case 623: -#line 2814 "parse.y" +#line 2811 "parse.y" { got_scope = NULL_TREE; yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-1].ttype, yyvsp[0].ttype); enter_scope_of (yyval.ttype); ; break;} case 624: -#line 2822 "parse.y" +#line 2819 "parse.y" { got_scope = NULL_TREE; yyval.ttype = build_parse_node (SCOPE_REF, yyval.ttype, yyvsp[0].ttype); ; break;} case 625: -#line 2825 "parse.y" +#line 2822 "parse.y" { got_scope = NULL_TREE; yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 626: -#line 2831 "parse.y" +#line 2828 "parse.y" { got_scope = NULL_TREE; yyval.ttype = build_parse_node (SCOPE_REF, yyval.ttype, yyvsp[0].ttype); ; break;} case 627: -#line 2834 "parse.y" +#line 2831 "parse.y" { got_scope = NULL_TREE; yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 629: -#line 2841 "parse.y" +#line 2838 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 630: -#line 2846 "parse.y" +#line 2843 "parse.y" { yyval.ttype = build_functional_cast (yyvsp[-3].ftype.t, yyvsp[-1].ttype); ; break;} case 631: -#line 2848 "parse.y" +#line 2845 "parse.y" { yyval.ttype = reparse_decl_as_expr (yyvsp[-3].ftype.t, yyvsp[-1].ttype); ; break;} case 632: -#line 2850 "parse.y" +#line 2847 "parse.y" { yyval.ttype = reparse_absdcl_as_expr (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 637: -#line 2862 "parse.y" +#line 2859 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 638: -#line 2864 "parse.y" +#line 2861 "parse.y" { got_scope = yyval.ttype = make_typename_type (yyvsp[-3].ttype, yyvsp[-1].ttype, /*complain=*/1); ; break;} case 639: -#line 2872 "parse.y" +#line 2869 "parse.y" { if (TREE_CODE (yyvsp[-1].ttype) == IDENTIFIER_NODE) { @@ -7238,7 +7235,7 @@ case 639: ; break;} case 640: -#line 2882 "parse.y" +#line 2879 "parse.y" { if (TREE_CODE (yyvsp[-1].ttype) == IDENTIFIER_NODE) yyval.ttype = lastiddecl; @@ -7246,7 +7243,7 @@ case 640: ; break;} case 641: -#line 2888 "parse.y" +#line 2885 "parse.y" { if (TREE_CODE (yyval.ttype) == IDENTIFIER_NODE) yyval.ttype = lastiddecl; @@ -7254,15 +7251,15 @@ case 641: ; break;} case 642: -#line 2894 "parse.y" +#line 2891 "parse.y" { got_scope = yyval.ttype = complete_type (TREE_TYPE (yyvsp[-1].ttype)); ; break;} case 644: -#line 2910 "parse.y" +#line 2907 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 645: -#line 2915 "parse.y" +#line 2912 "parse.y" { if (TREE_CODE_CLASS (TREE_CODE (yyvsp[-1].ttype)) == 't') yyval.ttype = make_typename_type (yyvsp[-1].ttype, yyvsp[0].ttype, /*complain=*/1); @@ -7277,26 +7274,26 @@ case 645: ; break;} case 646: -#line 2928 "parse.y" +#line 2925 "parse.y" { yyval.ttype = TREE_TYPE (yyvsp[0].ttype); ; break;} case 647: -#line 2930 "parse.y" +#line 2927 "parse.y" { yyval.ttype = make_typename_type (yyvsp[-1].ttype, yyvsp[0].ttype, /*complain=*/1); ; break;} case 648: -#line 2932 "parse.y" +#line 2929 "parse.y" { yyval.ttype = make_typename_type (yyvsp[-2].ttype, yyvsp[0].ttype, /*complain=*/1); ; break;} case 649: -#line 2937 "parse.y" +#line 2934 "parse.y" { if (TREE_CODE (yyvsp[0].ttype) == IDENTIFIER_NODE) cp_error ("`%T' is not a class or namespace", yyvsp[0].ttype); ; break;} case 650: -#line 2942 "parse.y" +#line 2939 "parse.y" { if (TREE_CODE_CLASS (TREE_CODE (yyvsp[-1].ttype)) == 't') yyval.ttype = make_typename_type (yyvsp[-1].ttype, yyvsp[0].ttype, /*complain=*/1); @@ -7311,17 +7308,17 @@ case 650: ; break;} case 651: -#line 2955 "parse.y" +#line 2952 "parse.y" { got_scope = yyval.ttype = make_typename_type (yyvsp[-2].ttype, yyvsp[-1].ttype, /*complain=*/1); ; break;} case 652: -#line 2958 "parse.y" +#line 2955 "parse.y" { got_scope = yyval.ttype = make_typename_type (yyvsp[-3].ttype, yyvsp[-1].ttype, /*complain=*/1); ; break;} case 653: -#line 2964 "parse.y" +#line 2961 "parse.y" { if (TREE_CODE (yyvsp[-1].ttype) != IDENTIFIER_NODE) yyvsp[-1].ttype = lastiddecl; @@ -7335,7 +7332,7 @@ case 653: ; break;} case 654: -#line 2976 "parse.y" +#line 2973 "parse.y" { if (TREE_CODE (yyvsp[-1].ttype) != IDENTIFIER_NODE) yyval.ttype = lastiddecl; @@ -7343,11 +7340,11 @@ case 654: ; break;} case 655: -#line 2982 "parse.y" +#line 2979 "parse.y" { got_scope = yyval.ttype = complete_type (TREE_TYPE (yyval.ttype)); ; break;} case 658: -#line 2986 "parse.y" +#line 2983 "parse.y" { if (TREE_CODE (yyval.ttype) == IDENTIFIER_NODE) yyval.ttype = lastiddecl; @@ -7355,11 +7352,11 @@ case 658: ; break;} case 659: -#line 2995 "parse.y" +#line 2992 "parse.y" { yyval.ttype = build_min_nt (TEMPLATE_ID_EXPR, yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 660: -#line 3000 "parse.y" +#line 2997 "parse.y" { if (TREE_CODE (yyvsp[0].ttype) == IDENTIFIER_NODE) yyval.ttype = IDENTIFIER_GLOBAL_VALUE (yyvsp[0].ttype); @@ -7369,59 +7366,59 @@ case 660: ; break;} case 662: -#line 3009 "parse.y" +#line 3006 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 663: -#line 3014 "parse.y" +#line 3011 "parse.y" { got_scope = NULL_TREE; ; break;} case 664: -#line 3016 "parse.y" +#line 3013 "parse.y" { yyval.ttype = yyvsp[-1].ttype; got_scope = NULL_TREE; ; break;} case 665: -#line 3023 "parse.y" +#line 3020 "parse.y" { got_scope = void_type_node; ; break;} case 666: -#line 3029 "parse.y" +#line 3026 "parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 667: -#line 3031 "parse.y" +#line 3028 "parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); ; break;} case 668: -#line 3033 "parse.y" +#line 3030 "parse.y" { yyval.ttype = make_reference_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 669: -#line 3035 "parse.y" +#line 3032 "parse.y" { yyval.ttype = make_reference_declarator (yyvsp[0].ttype, NULL_TREE); ; break;} case 670: -#line 3037 "parse.y" +#line 3034 "parse.y" { tree arg = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-1].ttype, arg); ; break;} case 671: -#line 3041 "parse.y" +#line 3038 "parse.y" { tree arg = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-2].ttype, arg); ; break;} case 673: -#line 3050 "parse.y" +#line 3047 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ; break;} case 674: -#line 3052 "parse.y" +#line 3049 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, yyval.ttype, yyvsp[-1].ttype); ; break;} case 676: -#line 3058 "parse.y" +#line 3055 "parse.y" { /* Provide support for '(' attributes '*' declarator ')' etc */ @@ -7429,96 +7426,96 @@ case 676: ; break;} case 677: -#line 3068 "parse.y" +#line 3065 "parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 678: -#line 3070 "parse.y" +#line 3067 "parse.y" { yyval.ttype = make_pointer_declarator (NULL_TREE, yyvsp[0].ttype); ; break;} case 679: -#line 3072 "parse.y" +#line 3069 "parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[0].ftype.t, NULL_TREE); ; break;} case 680: -#line 3074 "parse.y" +#line 3071 "parse.y" { yyval.ttype = make_pointer_declarator (NULL_TREE, NULL_TREE); ; break;} case 681: -#line 3076 "parse.y" +#line 3073 "parse.y" { yyval.ttype = make_reference_declarator (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 682: -#line 3078 "parse.y" +#line 3075 "parse.y" { yyval.ttype = make_reference_declarator (NULL_TREE, yyvsp[0].ttype); ; break;} case 683: -#line 3080 "parse.y" +#line 3077 "parse.y" { yyval.ttype = make_reference_declarator (yyvsp[0].ftype.t, NULL_TREE); ; break;} case 684: -#line 3082 "parse.y" +#line 3079 "parse.y" { yyval.ttype = make_reference_declarator (NULL_TREE, NULL_TREE); ; break;} case 685: -#line 3084 "parse.y" +#line 3081 "parse.y" { tree arg = make_pointer_declarator (yyvsp[0].ttype, NULL_TREE); yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-1].ttype, arg); ; break;} case 686: -#line 3088 "parse.y" +#line 3085 "parse.y" { tree arg = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-2].ttype, arg); ; break;} case 688: -#line 3097 "parse.y" +#line 3094 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 689: -#line 3100 "parse.y" +#line 3097 "parse.y" { yyval.ttype = make_call_declarator (yyval.ttype, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 690: -#line 3102 "parse.y" +#line 3099 "parse.y" { yyval.ttype = make_call_declarator (yyval.ttype, empty_parms (), yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 691: -#line 3104 "parse.y" +#line 3101 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, yyval.ttype, yyvsp[-1].ttype); ; break;} case 692: -#line 3106 "parse.y" +#line 3103 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, yyval.ttype, NULL_TREE); ; break;} case 693: -#line 3108 "parse.y" +#line 3105 "parse.y" { yyval.ttype = make_call_declarator (NULL_TREE, yyvsp[-3].ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 694: -#line 3110 "parse.y" +#line 3107 "parse.y" { set_quals_and_spec (yyval.ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 695: -#line 3112 "parse.y" +#line 3109 "parse.y" { set_quals_and_spec (yyval.ttype, yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 696: -#line 3114 "parse.y" +#line 3111 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, NULL_TREE, yyvsp[-1].ttype); ; break;} case 697: -#line 3116 "parse.y" +#line 3113 "parse.y" { yyval.ttype = build_parse_node (ARRAY_REF, NULL_TREE, NULL_TREE); ; break;} case 704: -#line 3139 "parse.y" +#line 3136 "parse.y" { if (pedantic) pedwarn ("ANSI C++ forbids label declarations"); ; break;} case 707: -#line 3150 "parse.y" +#line 3147 "parse.y" { while (yyvsp[-1].ttype) { @@ -7528,193 +7525,193 @@ case 707: ; break;} case 708: -#line 3163 "parse.y" +#line 3160 "parse.y" {; break;} case 710: -#line 3169 "parse.y" +#line 3166 "parse.y" { yyval.ttype = begin_compound_stmt (0); ; break;} case 711: -#line 3171 "parse.y" +#line 3168 "parse.y" { yyval.ttype = finish_compound_stmt (0, yyvsp[-1].ttype); ; break;} case 712: -#line 3176 "parse.y" +#line 3173 "parse.y" { yyval.ttype = begin_if_stmt (); cond_stmt_keyword = "if"; ; break;} case 713: -#line 3181 "parse.y" +#line 3178 "parse.y" { finish_if_stmt_cond (yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 714: -#line 3183 "parse.y" +#line 3180 "parse.y" { yyval.ttype = finish_then_clause (yyvsp[-3].ttype); ; break;} case 716: -#line 3188 "parse.y" +#line 3185 "parse.y" { yyval.ttype = begin_compound_stmt (0); ; break;} case 717: -#line 3190 "parse.y" +#line 3187 "parse.y" { yyval.ttype = finish_compound_stmt (0, yyvsp[-1].ttype); ; break;} case 718: -#line 3195 "parse.y" +#line 3192 "parse.y" {; break;} case 720: -#line 3201 "parse.y" +#line 3198 "parse.y" { finish_stmt (); ; break;} case 721: -#line 3203 "parse.y" +#line 3200 "parse.y" { finish_expr_stmt (yyvsp[-1].ttype); ; break;} case 722: -#line 3205 "parse.y" +#line 3202 "parse.y" { begin_else_clause (); ; break;} case 723: -#line 3207 "parse.y" +#line 3204 "parse.y" { finish_else_clause (yyvsp[-3].ttype); finish_if_stmt (); ; break;} case 724: -#line 3212 "parse.y" +#line 3209 "parse.y" { finish_if_stmt (); ; break;} case 725: -#line 3214 "parse.y" +#line 3211 "parse.y" { yyval.ttype = begin_while_stmt (); cond_stmt_keyword = "while"; ; break;} case 726: -#line 3219 "parse.y" +#line 3216 "parse.y" { finish_while_stmt_cond (yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 727: -#line 3221 "parse.y" +#line 3218 "parse.y" { finish_while_stmt (yyvsp[-3].ttype); ; break;} case 728: -#line 3223 "parse.y" +#line 3220 "parse.y" { yyval.ttype = begin_do_stmt (); ; break;} case 729: -#line 3225 "parse.y" +#line 3222 "parse.y" { finish_do_body (yyvsp[-2].ttype); cond_stmt_keyword = "do"; ; break;} case 730: -#line 3230 "parse.y" +#line 3227 "parse.y" { finish_do_stmt (yyvsp[-1].ttype, yyvsp[-5].ttype); ; break;} case 731: -#line 3232 "parse.y" +#line 3229 "parse.y" { yyval.ttype = begin_for_stmt (); ; break;} case 732: -#line 3234 "parse.y" +#line 3231 "parse.y" { finish_for_init_stmt (yyvsp[-2].ttype); ; break;} case 733: -#line 3236 "parse.y" +#line 3233 "parse.y" { finish_for_cond (yyvsp[-1].ttype, yyvsp[-5].ttype); ; break;} case 734: -#line 3238 "parse.y" +#line 3235 "parse.y" { finish_for_expr (yyvsp[-1].ttype, yyvsp[-8].ttype); ; break;} case 735: -#line 3240 "parse.y" +#line 3237 "parse.y" { finish_for_stmt (yyvsp[-3].ttype, yyvsp[-10].ttype); ; break;} case 736: -#line 3242 "parse.y" +#line 3239 "parse.y" { yyval.ttype = begin_switch_stmt (); ; break;} case 737: -#line 3244 "parse.y" +#line 3241 "parse.y" { finish_switch_cond (yyvsp[-1].ttype, yyvsp[-3].ttype); ; break;} case 738: -#line 3246 "parse.y" +#line 3243 "parse.y" { finish_switch_stmt (yyvsp[-3].ttype, yyvsp[-5].ttype); ; break;} case 739: -#line 3248 "parse.y" +#line 3245 "parse.y" { finish_case_label (yyvsp[-1].ttype, NULL_TREE); ; break;} case 741: -#line 3251 "parse.y" +#line 3248 "parse.y" { finish_case_label (yyvsp[-3].ttype, yyvsp[-1].ttype); ; break;} case 743: -#line 3254 "parse.y" +#line 3251 "parse.y" { finish_case_label (NULL_TREE, NULL_TREE); ; break;} case 745: -#line 3257 "parse.y" +#line 3254 "parse.y" { finish_break_stmt (); ; break;} case 746: -#line 3259 "parse.y" +#line 3256 "parse.y" { finish_continue_stmt (); ; break;} case 747: -#line 3261 "parse.y" +#line 3258 "parse.y" { finish_return_stmt (NULL_TREE); ; break;} case 748: -#line 3263 "parse.y" +#line 3260 "parse.y" { finish_return_stmt (yyvsp[-1].ttype); ; break;} case 749: -#line 3265 "parse.y" +#line 3262 "parse.y" { finish_asm_stmt (yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE, NULL_TREE); ; break;} case 750: -#line 3271 "parse.y" +#line 3268 "parse.y" { finish_asm_stmt (yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE, NULL_TREE); ; break;} case 751: -#line 3277 "parse.y" +#line 3274 "parse.y" { finish_asm_stmt (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype, NULL_TREE); ; break;} case 752: -#line 3279 "parse.y" +#line 3276 "parse.y" { finish_asm_stmt (yyvsp[-6].ttype, yyvsp[-4].ttype, NULL_TREE, yyvsp[-2].ttype, NULL_TREE); ; break;} case 753: -#line 3283 "parse.y" +#line 3280 "parse.y" { finish_asm_stmt (yyvsp[-10].ttype, yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, yyvsp[-2].ttype); ; break;} case 754: -#line 3286 "parse.y" +#line 3283 "parse.y" { finish_asm_stmt (yyvsp[-8].ttype, yyvsp[-6].ttype, NULL_TREE, yyvsp[-4].ttype, yyvsp[-2].ttype); ; break;} case 755: -#line 3289 "parse.y" +#line 3286 "parse.y" { finish_asm_stmt (yyvsp[-8].ttype, yyvsp[-6].ttype, yyvsp[-4].ttype, NULL_TREE, yyvsp[-2].ttype); ; break;} case 756: -#line 3291 "parse.y" +#line 3288 "parse.y" { if (pedantic) pedwarn ("ANSI C++ forbids computed gotos"); @@ -7722,67 +7719,67 @@ case 756: ; break;} case 757: -#line 3297 "parse.y" +#line 3294 "parse.y" { finish_goto_stmt (yyvsp[-1].ttype); ; break;} case 759: -#line 3300 "parse.y" +#line 3297 "parse.y" { error ("label must be followed by statement"); yyungetc ('}', 0); ; break;} case 760: -#line 3303 "parse.y" +#line 3300 "parse.y" { finish_stmt (); ; break;} case 763: -#line 3307 "parse.y" +#line 3304 "parse.y" { do_local_using_decl (yyvsp[0].ttype); ; break;} case 765: -#line 3313 "parse.y" +#line 3310 "parse.y" { yyval.ttype = begin_function_try_block (); ; break;} case 766: -#line 3315 "parse.y" +#line 3312 "parse.y" { finish_function_try_block (yyvsp[-2].ttype); ; break;} case 767: -#line 3317 "parse.y" +#line 3314 "parse.y" { finish_function_handler_sequence (yyvsp[-4].ttype); yyval.itype = yyvsp[-3].itype; ; break;} case 768: -#line 3325 "parse.y" +#line 3322 "parse.y" { yyval.ttype = begin_try_block (); ; break;} case 769: -#line 3327 "parse.y" +#line 3324 "parse.y" { finish_try_block (yyvsp[-1].ttype); ; break;} case 770: -#line 3329 "parse.y" +#line 3326 "parse.y" { finish_handler_sequence (yyvsp[-3].ttype); ; break;} case 773: -#line 3339 "parse.y" +#line 3336 "parse.y" { yyval.ttype = begin_handler(); ; break;} case 774: -#line 3341 "parse.y" +#line 3338 "parse.y" { yyval.ttype = finish_handler_parms (yyvsp[0].ttype, yyvsp[-1].ttype); ; break;} case 775: -#line 3343 "parse.y" +#line 3340 "parse.y" { finish_handler (yyvsp[-1].ttype, yyvsp[-3].ttype); ; break;} case 778: -#line 3353 "parse.y" +#line 3350 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 779: -#line 3369 "parse.y" +#line 3366 "parse.y" { check_for_new_type ("inside exception declarations", yyvsp[-1].ftype); yyval.ttype = start_handler_parms (TREE_PURPOSE (yyvsp[-1].ftype.t), @@ -7790,102 +7787,102 @@ case 779: ; break;} case 780: -#line 3378 "parse.y" +#line 3375 "parse.y" { finish_label_stmt (yyvsp[-1].ttype); ; break;} case 781: -#line 3380 "parse.y" +#line 3377 "parse.y" { finish_label_stmt (yyvsp[-1].ttype); ; break;} case 782: -#line 3382 "parse.y" +#line 3379 "parse.y" { finish_label_stmt (yyvsp[-1].ttype); ; break;} case 783: -#line 3384 "parse.y" +#line 3381 "parse.y" { finish_label_stmt (yyvsp[-1].ttype); ; break;} case 784: -#line 3389 "parse.y" +#line 3386 "parse.y" { finish_expr_stmt (yyvsp[-1].ttype); ; break;} case 786: -#line 3392 "parse.y" +#line 3389 "parse.y" { if (pedantic) pedwarn ("ANSI C++ forbids compound statements inside for initializations"); ; break;} case 787: -#line 3401 "parse.y" +#line 3398 "parse.y" { emit_line_note (input_filename, lineno); yyval.ttype = NULL_TREE; ; break;} case 788: -#line 3404 "parse.y" +#line 3401 "parse.y" { emit_line_note (input_filename, lineno); ; break;} case 789: -#line 3409 "parse.y" +#line 3406 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 791: -#line 3412 "parse.y" +#line 3409 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 792: -#line 3419 "parse.y" +#line 3416 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 795: -#line 3426 "parse.y" +#line 3423 "parse.y" { yyval.ttype = chainon (yyval.ttype, yyvsp[0].ttype); ; break;} case 796: -#line 3431 "parse.y" +#line 3428 "parse.y" { yyval.ttype = build_tree_list (yyval.ttype, yyvsp[-1].ttype); ; break;} case 797: -#line 3436 "parse.y" +#line 3433 "parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyval.ttype, NULL_TREE); ; break;} case 798: -#line 3438 "parse.y" +#line 3435 "parse.y" { yyval.ttype = tree_cons (NULL_TREE, yyvsp[0].ttype, yyval.ttype); ; break;} case 799: -#line 3449 "parse.y" +#line 3446 "parse.y" { yyval.ttype = empty_parms(); ; break;} case 801: -#line 3454 "parse.y" +#line 3451 "parse.y" { yyval.ttype = finish_parmlist (build_tree_list (NULL_TREE, yyvsp[0].ftype.t), 0); check_for_new_type ("inside parameter list", yyvsp[0].ftype); ; break;} case 802: -#line 3462 "parse.y" +#line 3459 "parse.y" { yyval.ttype = finish_parmlist (yyval.ttype, 0); ; break;} case 803: -#line 3464 "parse.y" +#line 3461 "parse.y" { yyval.ttype = finish_parmlist (yyvsp[-1].ttype, 1); ; break;} case 804: -#line 3467 "parse.y" +#line 3464 "parse.y" { yyval.ttype = finish_parmlist (yyvsp[-1].ttype, 1); ; break;} case 805: -#line 3469 "parse.y" +#line 3466 "parse.y" { yyval.ttype = finish_parmlist (build_tree_list (NULL_TREE, yyvsp[-1].ftype.t), 1); ; break;} case 806: -#line 3472 "parse.y" +#line 3469 "parse.y" { yyval.ttype = finish_parmlist (NULL_TREE, 1); ; break;} case 807: -#line 3474 "parse.y" +#line 3471 "parse.y" { /* This helps us recover from really nasty parse errors, for example, a missing right @@ -7897,7 +7894,7 @@ case 807: ; break;} case 808: -#line 3484 "parse.y" +#line 3481 "parse.y" { /* This helps us recover from really nasty parse errors, for example, a missing right @@ -7910,99 +7907,99 @@ case 808: ; break;} case 809: -#line 3499 "parse.y" +#line 3496 "parse.y" { maybe_snarf_defarg (); ; break;} case 810: -#line 3501 "parse.y" +#line 3498 "parse.y" { yyval.ttype = yyvsp[0].ttype; ; break;} case 813: -#line 3512 "parse.y" +#line 3509 "parse.y" { check_for_new_type ("in a parameter list", yyvsp[0].ftype); yyval.ttype = build_tree_list (NULL_TREE, yyvsp[0].ftype.t); ; break;} case 814: -#line 3515 "parse.y" +#line 3512 "parse.y" { check_for_new_type ("in a parameter list", yyvsp[-1].ftype); yyval.ttype = build_tree_list (yyvsp[0].ttype, yyvsp[-1].ftype.t); ; break;} case 815: -#line 3518 "parse.y" +#line 3515 "parse.y" { check_for_new_type ("in a parameter list", yyvsp[0].ftype); yyval.ttype = chainon (yyval.ttype, yyvsp[0].ftype.t); ; break;} case 816: -#line 3521 "parse.y" +#line 3518 "parse.y" { yyval.ttype = chainon (yyval.ttype, build_tree_list (NULL_TREE, yyvsp[0].ttype)); ; break;} case 817: -#line 3523 "parse.y" +#line 3520 "parse.y" { yyval.ttype = chainon (yyval.ttype, build_tree_list (yyvsp[0].ttype, yyvsp[-2].ttype)); ; break;} case 819: -#line 3529 "parse.y" +#line 3526 "parse.y" { check_for_new_type ("in a parameter list", yyvsp[-1].ftype); yyval.ttype = build_tree_list (NULL_TREE, yyvsp[-1].ftype.t); ; break;} case 820: -#line 3539 "parse.y" +#line 3536 "parse.y" { tree specs = strip_attrs (yyvsp[-1].ftype.t); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; yyval.ftype.t = build_tree_list (specs, yyvsp[0].ttype); ; break;} case 821: -#line 3543 "parse.y" +#line 3540 "parse.y" { yyval.ftype.t = build_tree_list (yyvsp[-1].ftype.t, yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 822: -#line 3546 "parse.y" +#line 3543 "parse.y" { yyval.ftype.t = build_tree_list (build_decl_list (NULL_TREE, yyvsp[-1].ftype.t), yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 823: -#line 3550 "parse.y" +#line 3547 "parse.y" { tree specs = strip_attrs (yyvsp[-1].ftype.t); yyval.ftype.t = build_tree_list (specs, yyvsp[0].ttype); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 824: -#line 3554 "parse.y" +#line 3551 "parse.y" { tree specs = strip_attrs (yyvsp[0].ftype.t); yyval.ftype.t = build_tree_list (specs, NULL_TREE); yyval.ftype.new_type_flag = yyvsp[0].ftype.new_type_flag; ; break;} case 825: -#line 3558 "parse.y" +#line 3555 "parse.y" { tree specs = strip_attrs (yyvsp[-1].ftype.t); yyval.ftype.t = build_tree_list (specs, yyvsp[0].ttype); yyval.ftype.new_type_flag = 0; ; break;} case 826: -#line 3565 "parse.y" +#line 3562 "parse.y" { yyval.ftype.t = build_tree_list (NULL_TREE, yyvsp[0].ftype.t); yyval.ftype.new_type_flag = yyvsp[0].ftype.new_type_flag; ; break;} case 827: -#line 3568 "parse.y" +#line 3565 "parse.y" { yyval.ftype.t = build_tree_list (yyvsp[0].ttype, yyvsp[-1].ftype.t); yyval.ftype.new_type_flag = yyvsp[-1].ftype.new_type_flag; ; break;} case 830: -#line 3579 "parse.y" +#line 3576 "parse.y" { see_typename (); ; break;} case 831: -#line 3584 "parse.y" +#line 3581 "parse.y" { error ("type specifier omitted for parameter"); yyval.ttype = build_tree_list (integer_type_node, NULL_TREE); ; break;} case 832: -#line 3589 "parse.y" +#line 3586 "parse.y" { error ("type specifier omitted for parameter"); if (TREE_CODE (yyval.ttype) == SCOPE_REF @@ -8013,192 +8010,192 @@ case 832: ; break;} case 833: -#line 3601 "parse.y" +#line 3598 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 834: -#line 3603 "parse.y" +#line 3600 "parse.y" { yyval.ttype = yyvsp[-1].ttype; ; break;} case 835: -#line 3605 "parse.y" +#line 3602 "parse.y" { yyval.ttype = empty_except_spec; ; break;} case 836: -#line 3610 "parse.y" +#line 3607 "parse.y" { check_for_new_type ("exception specifier", yyvsp[0].ftype); yyval.ttype = groktypename (yyvsp[0].ftype.t); ; break;} case 837: -#line 3618 "parse.y" +#line 3615 "parse.y" { yyval.ttype = add_exception_specifier (NULL_TREE, yyvsp[0].ttype, 1); ; break;} case 838: -#line 3620 "parse.y" +#line 3617 "parse.y" { yyval.ttype = add_exception_specifier (yyvsp[-2].ttype, yyvsp[0].ttype, 1); ; break;} case 839: -#line 3625 "parse.y" +#line 3622 "parse.y" { yyval.ttype = NULL_TREE; ; break;} case 840: -#line 3627 "parse.y" +#line 3624 "parse.y" { yyval.ttype = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 841: -#line 3629 "parse.y" +#line 3626 "parse.y" { yyval.ttype = make_reference_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); ; break;} case 842: -#line 3631 "parse.y" +#line 3628 "parse.y" { tree arg = make_pointer_declarator (yyvsp[-1].ttype, yyvsp[0].ttype); yyval.ttype = build_parse_node (SCOPE_REF, yyvsp[-2].ttype, arg); ; break;} case 843: -#line 3638 "parse.y" +#line 3635 "parse.y" { got_scope = NULL_TREE; ; break;} case 844: -#line 3643 "parse.y" +#line 3640 "parse.y" { yyval.ttype = ansi_opname[MULT_EXPR]; ; break;} case 845: -#line 3645 "parse.y" +#line 3642 "parse.y" { yyval.ttype = ansi_opname[TRUNC_DIV_EXPR]; ; break;} case 846: -#line 3647 "parse.y" +#line 3644 "parse.y" { yyval.ttype = ansi_opname[TRUNC_MOD_EXPR]; ; break;} case 847: -#line 3649 "parse.y" +#line 3646 "parse.y" { yyval.ttype = ansi_opname[PLUS_EXPR]; ; break;} case 848: -#line 3651 "parse.y" +#line 3648 "parse.y" { yyval.ttype = ansi_opname[MINUS_EXPR]; ; break;} case 849: -#line 3653 "parse.y" +#line 3650 "parse.y" { yyval.ttype = ansi_opname[BIT_AND_EXPR]; ; break;} case 850: -#line 3655 "parse.y" +#line 3652 "parse.y" { yyval.ttype = ansi_opname[BIT_IOR_EXPR]; ; break;} case 851: -#line 3657 "parse.y" +#line 3654 "parse.y" { yyval.ttype = ansi_opname[BIT_XOR_EXPR]; ; break;} case 852: -#line 3659 "parse.y" +#line 3656 "parse.y" { yyval.ttype = ansi_opname[BIT_NOT_EXPR]; ; break;} case 853: -#line 3661 "parse.y" +#line 3658 "parse.y" { yyval.ttype = ansi_opname[COMPOUND_EXPR]; ; break;} case 854: -#line 3663 "parse.y" +#line 3660 "parse.y" { yyval.ttype = ansi_opname[yyvsp[0].code]; ; break;} case 855: -#line 3665 "parse.y" +#line 3662 "parse.y" { yyval.ttype = ansi_opname[LT_EXPR]; ; break;} case 856: -#line 3667 "parse.y" +#line 3664 "parse.y" { yyval.ttype = ansi_opname[GT_EXPR]; ; break;} case 857: -#line 3669 "parse.y" +#line 3666 "parse.y" { yyval.ttype = ansi_opname[yyvsp[0].code]; ; break;} case 858: -#line 3671 "parse.y" +#line 3668 "parse.y" { yyval.ttype = ansi_assopname[yyvsp[0].code]; ; break;} case 859: -#line 3673 "parse.y" +#line 3670 "parse.y" { yyval.ttype = ansi_opname [MODIFY_EXPR]; ; break;} case 860: -#line 3675 "parse.y" +#line 3672 "parse.y" { yyval.ttype = ansi_opname[yyvsp[0].code]; ; break;} case 861: -#line 3677 "parse.y" +#line 3674 "parse.y" { yyval.ttype = ansi_opname[yyvsp[0].code]; ; break;} case 862: -#line 3679 "parse.y" +#line 3676 "parse.y" { yyval.ttype = ansi_opname[POSTINCREMENT_EXPR]; ; break;} case 863: -#line 3681 "parse.y" +#line 3678 "parse.y" { yyval.ttype = ansi_opname[PREDECREMENT_EXPR]; ; break;} case 864: -#line 3683 "parse.y" +#line 3680 "parse.y" { yyval.ttype = ansi_opname[TRUTH_ANDIF_EXPR]; ; break;} case 865: -#line 3685 "parse.y" +#line 3682 "parse.y" { yyval.ttype = ansi_opname[TRUTH_ORIF_EXPR]; ; break;} case 866: -#line 3687 "parse.y" +#line 3684 "parse.y" { yyval.ttype = ansi_opname[TRUTH_NOT_EXPR]; ; break;} case 867: -#line 3689 "parse.y" +#line 3686 "parse.y" { yyval.ttype = ansi_opname[COND_EXPR]; ; break;} case 868: -#line 3691 "parse.y" +#line 3688 "parse.y" { yyval.ttype = ansi_opname[yyvsp[0].code]; ; break;} case 869: -#line 3693 "parse.y" +#line 3690 "parse.y" { yyval.ttype = ansi_opname[COMPONENT_REF]; ; break;} case 870: -#line 3695 "parse.y" +#line 3692 "parse.y" { yyval.ttype = ansi_opname[MEMBER_REF]; ; break;} case 871: -#line 3697 "parse.y" +#line 3694 "parse.y" { yyval.ttype = ansi_opname[CALL_EXPR]; ; break;} case 872: -#line 3699 "parse.y" +#line 3696 "parse.y" { yyval.ttype = ansi_opname[ARRAY_REF]; ; break;} case 873: -#line 3701 "parse.y" +#line 3698 "parse.y" { yyval.ttype = ansi_opname[NEW_EXPR]; ; break;} case 874: -#line 3703 "parse.y" +#line 3700 "parse.y" { yyval.ttype = ansi_opname[DELETE_EXPR]; ; break;} case 875: -#line 3705 "parse.y" +#line 3702 "parse.y" { yyval.ttype = ansi_opname[VEC_NEW_EXPR]; ; break;} case 876: -#line 3707 "parse.y" +#line 3704 "parse.y" { yyval.ttype = ansi_opname[VEC_DELETE_EXPR]; ; break;} case 877: -#line 3710 "parse.y" +#line 3707 "parse.y" { yyval.ttype = grokoptypename (yyvsp[-1].ftype.t, yyvsp[0].ttype); ; break;} case 878: -#line 3712 "parse.y" +#line 3709 "parse.y" { yyval.ttype = ansi_opname[ERROR_MARK]; ; break;} } @@ -8423,7 +8420,7 @@ yyerrhandle: } return 1; } -#line 3715 "parse.y" +#line 3712 "parse.y" #ifdef SPEW_DEBUG diff --git a/gcc/cp/parse.y b/gcc/cp/parse.y index d1d2c16..ede7d93 100644 --- a/gcc/cp/parse.y +++ b/gcc/cp/parse.y @@ -315,6 +315,18 @@ extern void yyprint PARAMS ((FILE *, int, YYSTYPE)); extern tree combine_strings PARAMS ((tree)); static void +frob_specs (specs_attrs, lookups) + tree specs_attrs; + tree lookups; +{ + initial_deferred_type_access_control (lookups); + split_specs_attrs (specs_attrs, ¤t_declspecs, &prefix_attributes); + if (current_declspecs + && TREE_CODE (current_declspecs) != TREE_LIST) + current_declspecs = build_decl_list (NULL_TREE, current_declspecs); +} + +static void parse_decl (declarator, specs_attrs, lookups, attributes, initialized, decl) tree declarator; tree specs_attrs; @@ -323,12 +335,8 @@ parse_decl (declarator, specs_attrs, lookups, attributes, initialized, decl) int initialized; tree* decl; { - initial_deferred_type_access_control (lookups); + frob_specs (specs_attrs, lookups); - split_specs_attrs (specs_attrs, ¤t_declspecs, &prefix_attributes); - if (current_declspecs - && TREE_CODE (current_declspecs) != TREE_LIST) - current_declspecs = build_decl_list (NULL_TREE, current_declspecs); if (have_extern_spec && !used_extern_spec) { current_declspecs = decl_tree_cons (NULL_TREE, @@ -747,6 +755,7 @@ fn.def2: { tree specs, attrs; split_specs_attrs ($1.t, &specs, &attrs); attrs = build_tree_list (attrs, NULL_TREE); + initial_deferred_type_access_control ($1.lookups); $$ = start_method (specs, $2, attrs); goto rest_of_mdef; } | declmods notype_declarator { tree specs, attrs; @@ -2543,42 +2552,30 @@ component_declarator: after_type_component_declarator0: after_type_declarator maybeasm maybe_attribute maybe_init - { split_specs_attrs ($<ttype>0, ¤t_declspecs, - &prefix_attributes); - $<ttype>0 = current_declspecs; + { frob_specs ($<ftype>0.t, $<ftype>0.lookups); $$ = grokfield ($$, current_declspecs, $4, $2, build_tree_list ($3, prefix_attributes)); } | TYPENAME ':' expr_no_commas maybe_attribute - { split_specs_attrs ($<ttype>0, ¤t_declspecs, - &prefix_attributes); - $<ttype>0 = current_declspecs; + { frob_specs ($<ftype>0.t, $<ftype>0.lookups); $$ = grokbitfield ($$, current_declspecs, $3); cplus_decl_attributes ($$, $4, prefix_attributes); } ; notype_component_declarator0: notype_declarator maybeasm maybe_attribute maybe_init - { split_specs_attrs ($<ttype>0, ¤t_declspecs, - &prefix_attributes); - $<ttype>0 = current_declspecs; + { frob_specs ($<ftype>0.t, $<ftype>0.lookups); $$ = grokfield ($$, current_declspecs, $4, $2, build_tree_list ($3, prefix_attributes)); } | constructor_declarator maybeasm maybe_attribute maybe_init - { split_specs_attrs ($<ttype>0, ¤t_declspecs, - &prefix_attributes); - $<ttype>0 = current_declspecs; + { frob_specs ($<ftype>0.t, $<ftype>0.lookups); $$ = grokfield ($$, current_declspecs, $4, $2, build_tree_list ($3, prefix_attributes)); } | IDENTIFIER ':' expr_no_commas maybe_attribute - { split_specs_attrs ($<ttype>0, ¤t_declspecs, - &prefix_attributes); - $<ttype>0 = current_declspecs; + { frob_specs ($<ftype>0.t, $<ftype>0.lookups); $$ = grokbitfield ($$, current_declspecs, $3); cplus_decl_attributes ($$, $4, prefix_attributes); } | ':' expr_no_commas maybe_attribute - { split_specs_attrs ($<ttype>0, ¤t_declspecs, - &prefix_attributes); - $<ttype>0 = current_declspecs; + { frob_specs ($<ftype>0.t, $<ftype>0.lookups); $$ = grokbitfield (NULL_TREE, current_declspecs, $2); cplus_decl_attributes ($$, $3, prefix_attributes); } ; diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 57b5608..a3544dd 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -1052,6 +1052,13 @@ friend_accessible_p (scope, type, decl, binfo) if (protected_accessible_p (type, decl, TREE_VALUE (t), binfo)) return 1; + /* Nested classes are implicitly friends of their enclosing types, as + per core issue 45 (this is a change from the standard). */ + if (TYPE_P (scope)) + for (t = TYPE_CONTEXT (scope); t && TYPE_P (t); t = TYPE_CONTEXT (t)) + if (protected_accessible_p (type, decl, t, binfo)) + return 1; + if (TREE_CODE (scope) == FUNCTION_DECL || DECL_FUNCTION_TEMPLATE_P (scope)) { |