ChangeLog-2010 136 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065
  1. 2010-12-28 Jason Merrill <jason@redhat.com>
  2. PR c++/47068
  3. * semantics.c (finish_id_expression): Don't note non-names
  4. as being used in the class.
  5. 2010-12-23 Jason Merrill <jason@redhat.com>
  6. * parser.c (cp_parser_unary_expression): Remove redundant C++0x
  7. check.
  8. 2010-12-27 Jakub Jelinek <jakub@redhat.com>
  9. PR c++/46626
  10. * semantics.c (build_data_member_initialization): For CLEANUP_STMT
  11. recurse into CLEANUP_BODY.
  12. 2010-12-25 Kai Tietz <kai.tietz@onevision.com>
  13. PR c++/15774
  14. * decl.c (decls_match): Check for FUNCTION_DECL
  15. also for identity of compatible attributes.
  16. 2010-12-22 Nathan Froyd <froydnj@codesourcery.com>
  17. * decl.c (decls_match, duplicate_decls): Use prototype_p.
  18. * pt.c (push_template_decl_real): Likewise.
  19. 2010-12-22 Jason Merrill <jason@redhat.com>
  20. PR c++/47003
  21. * tree.c (stabilize_expr): Really stabilize scalar glvalues.
  22. 2010-12-22 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
  23. * parser.c (cp_parser_unary_expression): Call pedwarn for alignof
  24. with expression.
  25. 2010-12-18 Nicola Pero <nicola.pero@meta-innovation.com>
  26. * parser.c (cp_parser_objc_try_catch_finally_statement): Call
  27. objc_maybe_warn_exceptions.
  28. (cp_parser_objc_synchronized_statement): Same change.
  29. 2010-12-18 Joseph Myers <joseph@codesourcery.com>
  30. * pt.c (most_specialized_class): Use ngettext to determine
  31. "candidates are:" / "candidate is" message.
  32. 2010-12-17 Jason Merrill <jason@redhat.com>
  33. PR c++/46670
  34. * pt.c (value_dependent_expression_p) [ARRAY_REF]: Handle
  35. properly.
  36. 2010-12-15 Nathan Froyd <froydnj@codesourcery.com>
  37. PR c++/39859
  38. PR c++/44522
  39. PR c++/44523
  40. * parser.c (struct cp_parser): Add colon_corrects_to_scope_p field.
  41. (cp_parser_new): Initialize it.
  42. (cp_parser_nested_name_specifier_opt): Auto-correct colons to
  43. scopes if we are able to.
  44. (cp_parser_question_colon_clause): Disallow colon correction.
  45. (cp_parser_label_for_labeled_statement): Likewise.
  46. (cp_parser_range_for): Likewise.
  47. (cp_parser_enum_specifier): Likewise.
  48. (cp_parser_class_head): Likewise.
  49. (cp_parser_member_declaration): Likewise.
  50. 2010-12-15 Nathan Froyd <froydnj@codesourcery.com>
  51. PR c++/46852
  52. * parser.c (cp_parser_class_specifier): Check for TYPE_P.
  53. 2010-12-15 Jakub Jelinek <jakub@redhat.com>
  54. PR debug/46815
  55. * cp-gimplify.c (cp_genericize): When changing RESULT_DECL
  56. into invisible reference, change also DECL_VALUE_EXPR of
  57. NRV optimized variable.
  58. 2010-12-15 Paolo Carlini <paolo.carlini@oracle.com>
  59. PR c++/42083
  60. * init.c (build_value_init): Check build_special_member_call return
  61. value for error_mark_node.
  62. 2010-12-14 Jason Merrill <jason@redhat.com>
  63. PR c++/46930
  64. * decl.c (grokdeclarator): Reject uninitialized constexpr
  65. static data member.
  66. 2010-12-14 Nathan Froyd <froydnj@codesourcery.com>
  67. PR c++/45330
  68. * cp-tree.h (suggest_alternatives_for): Add location_t parameter.
  69. * name-lookup.c (suggest_alternatives_for): Likewise. Adjust.
  70. * lex.c (unqualified_name_lookup_error): Adjust call to it.
  71. * semantics.c (qualified_name_lookup_error): Move to...
  72. * error.c (qualified_name_lookup_error): ...here. Call.
  73. suggest_alternatives_for.
  74. 2010-12-13 Jason Merrill <jason@redhat.com>
  75. PR c++/46873
  76. PR c++/46877
  77. * semantics.c (build_data_member_initialization): Handle
  78. cv-qualified data member.
  79. 2010-12-13 Jan Hubicka <jh@suse.cz>
  80. PR middle-end/45388
  81. * decl2.c (start_objects): Do not generate collect2 recognicable name
  82. for static ctor.
  83. 2010-12-12 Paolo Carlini <paolo.carlini@oracle.com>
  84. PR c++/46901
  85. * typeck.c (convert_for_assignment): Fix typo in warning message.
  86. 2010-12-10 Jakub Jelinek <jakub@redhat.com>
  87. PR c++/46001
  88. * decl.c (record_builtin_java_type): Call build_distinct_type_copy
  89. on build_nonstandard_integer_type result for __java_* types.
  90. 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
  91. * decl.c (grokmethod): Test DECL_CLASS_SCOPE_P.
  92. * error.c (dump_decl): Test DECL_FILE_SCOPE_P.
  93. 2010-12-10 Nathan Froyd <froydnj@codesourcery.com>
  94. * cp-tree.h (readonly_error_kind): Delete.
  95. (readonly_error): Rename to...
  96. (cxx_readonly_error): ...this. Change second argument to be an
  97. enum lvalue_use.
  98. * semantics.c (finish_asm_stmt): Call cxx_readonly_error.
  99. * typeck.c (cp_build_unary_op): Likewise.
  100. (cp_build_modify_expr): Likewise.
  101. * typeck2.c (readonly_error): Rename to...
  102. (cxx_readonly_error): ...this. Delegate to readonly_error for
  103. most cases.
  104. 2010-12-10 Nicola Pero <nicola.pero@meta-innovation.com>
  105. * parser.c (cp_parser_objc_superclass_or_category): Recognize
  106. Objective-C 2.0 class extensions. Added iface_p and
  107. is_class_extension arguments.
  108. (cp_parser_objc_class_interface): Updated call to
  109. cp_parser_objc_superclass_or_category.
  110. (cp_parser_objc_class_implementation): Same change.
  111. 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
  112. * call.c (print_conversion_rejection): Indent messages two spaces.
  113. 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
  114. * typeck.c (cp_build_indirect_ref): Call invalid_indirection_error.
  115. 2010-12-09 Nathan Froyd <froydnj@codesourcery.com>
  116. * typeck.c (composite_pointer_error): New function.
  117. (composite_pointer_type_r, composite_pointer_type): Call it.
  118. 2010-12-08 Jason Merrill <jason@redhat.com>
  119. PR c++/46348
  120. * semantics.c (cxx_eval_vec_init_1): Handle value-init.
  121. (cxx_eval_vec_init): Pass value_init arg.
  122. 2010-12-08 Nathan Froyd <froydnj@codesourcery.com>
  123. PR c++/45329
  124. * call.c (struct conversion): Document bad_p field.
  125. (enum rejection_reason_code): Define.
  126. (struct conversion_info): Define.
  127. (struct rejection_reason): Define.
  128. (struct z_candidate): Add `reason' field.
  129. (add_candidate): Add `reason' parameter. Store it in CAND.
  130. (alloc_rejection, arity_rejection, arg_conversion_rejection):
  131. New functions.
  132. (bad_arg_conversion_rejection): New function.
  133. (convert_class_to_reference): Add comment.
  134. (remaining_arguments): New function.
  135. (add_function_candidate): Record rejection reason and pass it to
  136. add_candidate.
  137. (add_conv_candidate, build_builtin_candidate): Likewise.
  138. (add_template_candidate_real): Likewise.
  139. (print_conversion_rejection): New function.
  140. (print_z_candidate): Print CAND->REASON if it exists. Adjust
  141. diagnostic strings.
  142. (print_z_candidates): Add location_t argument. Adjust calling
  143. sequence for print_z_candidate. Print header line directly.
  144. (build_user_type_conversion_1): Add reason for rejection to
  145. CAND. Adjust call to print_z_candidates.
  146. (print_error_for_call_failure): New function.
  147. (build_new_function_call): Call it. Adjust call to
  148. print_z_candidates.
  149. (build_operator_new_call): Likewise.
  150. (build_op_call): Likewise.
  151. (build_conditional_expr): Likewise.
  152. (build_new_op): Likewise.
  153. (build_new_method_call): Likewise.
  154. 2010-12-08 Jason Merrill <jason@redhat.com>
  155. PR c++/45822
  156. * cp-tree.h (LOOKUP_DEFAULTED): New.
  157. * call.c (add_function_candidate): Check it.
  158. * method.c (synthesized_method_walk): Set it.
  159. (do_build_copy_assign): Likewise.
  160. * init.c (perform_member_init): Likewise.
  161. (emit_mem_initializers): Likewise.
  162. PR c++/46736
  163. * decl.c (cp_finish_decl): Complain about an implicitly deleted
  164. method defaulted outside the class.
  165. * method.c (maybe_explain_implicit_delete): Don't check DECL_INITIAL.
  166. 2010-12-07 Joseph Myers <joseph@codesourcery.com>
  167. * rtti.c: Don't include assert.h.
  168. 2010-12-07 Nathan Froyd <froydnj@codesourcery.com>
  169. PR c++/45330
  170. * cp-tree.h (suggest_alternatives_for, location_of): Declare.
  171. * error.c (dump_expr): Handle TYPE_DECL.
  172. (location_of): Unstaticize.
  173. * name-lookup.c (suggest_alternatives_for): New function.
  174. * lex.c (unqualified_name_lookup_error): Call it.
  175. 2010-12-06 Nicola Pero <nicola.pero@meta-innovation.com>
  176. * call.c: Include c-family/c-objc.h.
  177. * decl.c: Same change.
  178. * decl2.c: Same change.
  179. * error.c: Same change.
  180. * lex.c: Same change.
  181. * parser.c: Same change.
  182. * pt.c: Same change.
  183. * semantics.c: Same change.
  184. * typeck.c: Same change.
  185. * Make-lang.in (cp/decl.o): Depend on c-family/c-objc.h.
  186. (cp/decl2.o): Same change.
  187. (cp/call.o): Same change.
  188. (cp/error.o): Same change.
  189. (cp/lex.o): Same change.
  190. (cp/parser.o): Same change.
  191. (cp/pt.o): Same change.
  192. (cp/semantics.o): Same change.
  193. (cp/typeck.o): Same change.
  194. * config-lang.in (gtfiles): Added c-family/c-objc.h.
  195. 2010-12-03 Jason Merrill <jason@redhat.com>
  196. PR c++/46645
  197. * semantics.c (build_data_member_initialization): Remove assert.
  198. PR c++/46058
  199. * tree.c (lvalue_kind) [SCOPE_REF]: Handle non-dependent case.
  200. 2010-12-03 Richard Guenther <rguenther@suse.de>
  201. PR c/46745
  202. * error.c (dump_expr): Handle MEM_REF.
  203. 2010-12-03 Laurynas Biveinis <laurynas.biveinis@gmail.com>
  204. * cp-tree.h (struct aggr_init_expr_arg_iterator_d): Remove GTY
  205. tag.
  206. 2010-12-02 Nicola Pero <nicola.pero@meta-innovation.com>
  207. * parser.c (cp_parser_objc_throw_statement): Use
  208. cp_parser_expression, not cp_parser_assignment_expression, to
  209. parse the argument of a @throw.
  210. 2010-12-01 Joseph Myers <joseph@codesourcery.com>
  211. * cp-objcp-common.c, lex.c, typeck.c: Don't include toplev.h.
  212. * Make-lang.in (cp/lex.o, cp/cp-objcp-common.o, cp/typeck2.o):
  213. Update dependencies.
  214. 2010-11-30 Nicola Pero <nicola.pero@meta-innovation.com>
  215. * decl.c (finish_function): Call objc_finish_function when
  216. compiling Objective-C++.
  217. * call.c (standard_conversion): Do not call
  218. objc_non_volatilized_type().
  219. (implicit_conversion): Same change.
  220. * typeck.c (comp_ptr_ttypes_real): Same change.
  221. 2010-11-30 Joseph Myers <joseph@codesourcery.com>
  222. * cp-gimplify.c, cp-lang.c, cvt.c, cxx-pretty-print.c, error.c,
  223. except.c, expr.c, friend.c, init.c, mangle.c, name-lookup.c,
  224. optimize.c, parser.c, rtti.c, tree.c, typeck2.c: Don't include
  225. toplev.h.
  226. * Make-lang.in: Dependencies for above files changed to remove
  227. toplev.h.
  228. 2010-11-29 Dodji Seketeli <dodji@redhat.com>
  229. PR c++/42260
  230. * call.c (add_builtin_candidate): At this point the resulting type
  231. of an indirection operator should be complete.
  232. 2010-11-29 Dodji Seketeli <dodji@redhat.com>
  233. PR c++/45383
  234. Reverted patch for PR c++/42260
  235. * cp-tree.h (lookup_conversions): Reverted "Add new bool parameter to
  236. declarationE."
  237. * search.c (lookup_conversion): Reverted "Use new bool parameter in
  238. definition".
  239. * call.c (add_builtin_candidates): Reverted "Don't lookup template
  240. conversion"
  241. (convert_class_to_reference, build_user_type_conversion_1,
  242. build_op_call): Reverted "Adjust".
  243. * cvt.c (build_expr_type_conversion): Reverted "Likewise".
  244. 2010-11-29 Nicola Pero <nicola.pero@meta-innovation.com>
  245. * parser.c (cp_parser_objc_try_catch_finally_statement): Parse
  246. @catch(...) and pass NULL_TREE to objc_begin_catch_clause() in
  247. that case. Improved error recovery. Reorganized code to be
  248. almost identical to c_parser_objc_try_catch_finally_statement.
  249. 2010-11-27 Nicola Pero <nicola.pero@meta-innovation.com>
  250. PR objc++/46222
  251. * decl.c (grokdeclarator): Replaced an assert (for a case that can
  252. never happen in C++, but could happen in ObjC++ for invalid code)
  253. with a check that prints an error message and returns
  254. error_mark_node.
  255. 2010-11-23 Jeffrey Yasskin <jyasskin@google.com>
  256. PR c++/46527
  257. * pt.c (instantiate_decl): Propagate the template's location to
  258. its instance.
  259. 2010-11-20 Joseph Myers <joseph@codesourcery.com>
  260. * name-lookup.c (handle_namespace_attrs): Don't check
  261. HANDLE_PRAGMA_VISIBILITY.
  262. * parser.c (cp_parser_namespace_definition): Don't check
  263. HANDLE_PRAGMA_VISIBILITY.
  264. 2010-11-20 Nathan Froyd <froydnj@codesourcery.com>
  265. PR c++/16189
  266. PR c++/36888
  267. PR c++/45331
  268. * parser.c (cp_lexer_set_token_position): New function.
  269. (cp_lexer_previous_token_position): New function.
  270. (cp_lexer_previous_token): Call it.
  271. (cp_parser_class_specifier): Try to gracefully handle a missing
  272. semicolon.
  273. 2010-11-20 Jakub Jelinek <jakub@redhat.com>
  274. PR c++/46538
  275. * decl.c (cp_make_fname_decl): Return error_mark_node if
  276. current_binding_level has already sk_function_parms kind.
  277. PR c++/46526
  278. * semantics.c (cxx_eval_call_expression): Unshare the result.
  279. 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
  280. * parser.c (cp_parser_objc_protocol_declaration): Pass attributes
  281. to objc_declare_protocols.
  282. 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
  283. PR c/33193
  284. * typeck.c (cp_build_unary_op): Call build_real_imag_expr for
  285. REALPART_EXPR and IMAGPART_EXPR.
  286. 2010-11-16 Jason Merrill <jason@redhat.com>
  287. * call.c (convert_like_real): Don't make a temp for copy-list-init.
  288. (build_over_call): Don't handle that here.
  289. (build_new_method_call): Use COMPLETE_OR_OPEN_TYPE_P for error.
  290. PR c++/46497
  291. * call.c (build_over_call): Check for =delete even when trivial.
  292. DR 1004
  293. * decl.c (make_unbound_class_template): Handle using
  294. injected-type-name as template.
  295. 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
  296. * typeck.c (cp_build_unary_op): Use
  297. objc_build_incr_expr_for_property_ref to build the pre/post
  298. increment/decrement of an Objective-C property ref.
  299. 2010-11-13 Jason Merrill <jason@redhat.com>
  300. * decl.c (cp_finish_decl): Use resolve_nondeduced_context for auto.
  301. * init.c (build_new): Likewise.
  302. * pt.c (tsubst_decl): Likewise.
  303. (do_auto_deduction): Likewise.
  304. (resolve_nondeduced_context): Use build_offset_ref and
  305. cp_build_addr_expr.
  306. 2010-11-12 Joseph Myers <joseph@codesourcery.com>
  307. * Make-lang.in (g++spec.o): Use $(OPTS_H).
  308. 2010-11-13 Ville Voutilainen <ville.voutilainen@gmail.com> <ville.voutilainen@symbio.com>
  309. Core 1135, 1136, 1145, 1149
  310. * method.c (defaultable_fn_check): Do not disallow defaulting a
  311. non-public or explicit special member function on its first
  312. declaration.
  313. 2010-11-12 James Dennett <jdennett@google.com>
  314. PR/39415
  315. * typeck.c (build_static_cast_1): Convert to the target type
  316. when doing static_cast<cv Derived*>(Base*).
  317. 2010-11-10 Jason Merrill <jason@redhat.com>
  318. PR c++/46420
  319. * pt.c (tsubst_copy_and_build) [TARGET_EXPR]: New case.
  320. [CONSTRUCTOR]: Use the tsubsted type.
  321. PR c++/46369
  322. * semantics.c (cxx_eval_bit_field_ref): New.
  323. (cxx_eval_constant_expression): Call it.
  324. 2010-11-10 Joseph Myers <joseph@codesourcery.com>
  325. * cvt.c (cp_convert_to_pointer): Use %' in diagnostic.
  326. * decl.c (layout_var_decl, maybe_commonize_var, grokdeclarator):
  327. Use %' in diagnostics.
  328. * decl2.c (check_classfn): Use %' in diagnostic.
  329. * init.c (build_java_class_ref): Use %' in diagnostic.
  330. (build_delete): Remove trailing '.' from diagnostic.
  331. * method.c (do_build_copy_assign, walk_field_subobs): Use %' in
  332. diagnostics.
  333. * name-lookup.c (pushdecl_maybe_friend): Use %' in diagnostic.
  334. * parser.c (cp_parser_exception_specification_opt): Remove
  335. trailing '.' from diagnostic.
  336. (cp_parser_objc_interstitial_code): Use %qs for quoting in
  337. diagnostic.
  338. * pt.c (check_valid_ptrmem_cst_expr): Use %< and %> for quoting in
  339. diagnostic.
  340. * repo.c (reopen_repo_file_for_write): Use %' in diagnostic.
  341. 2010-11-10 Nathan Froyd <froydnj@codesourcery.com>
  342. PR c++/46065
  343. * decl.c (poplevel_named_label_1): Use TREE_CHAIN if necessary.
  344. 2010-11-09 Jakub Jelinek <jakub@redhat.com>
  345. PR c++/45894
  346. * tree.c (lvalue_kind): Don't crash if ref has NULL type.
  347. 2010-11-08 Jason Merrill <jason@redhat.com>
  348. PR c++/46382
  349. * semantics.c (check_constexpr_ctor_body): New fn.
  350. * parser.c (cp_parser_ctor_initializer_opt_and_function_body): Call it.
  351. * cp-tree.h: Declare it.
  352. PR c++/46335
  353. * tree.c (bot_manip): Check TREE_SIDE_EFFECTS as well.
  354. Correct conversion/overflow behavior.
  355. * cvt.c (ignore_overflows): Move here from typeck.c.
  356. (ocp_convert): Use it.
  357. (cp_fold_convert): Use it. Don't call rvalue.
  358. * typeck.c (build_static_cast_1): Don't use it. Do call rvalue.
  359. * error.c (location_of): Handle expressions, too.
  360. * class.c (check_bitfield_decl): Set input_location around call to
  361. cxx_constant_value.
  362. * semantics.c (cxx_eval_outermost_constant_expr): Don't
  363. print the expression if it already had TREE_OVERFLOW set.
  364. (reduced_constant_expression_p): Check TREE_OVERFLOW_P for C++98, too.
  365. (verify_constant): Allow overflow with a permerror if we're
  366. enforcing.
  367. (cxx_eval_outermost_constant_expr): Use verify_constant.
  368. (adjust_temp_type): Use cp_fold_convert.
  369. * decl.c (build_enumerator): Don't call constant_expression_warning.
  370. * decl2.c (grokbitfield): Likewise.
  371. 2010-11-06 Jason Merrill <jason@redhat.com>
  372. PR c++/46348
  373. * init.c (perform_member_init): Use build_vec_init_expr for
  374. value-init of arrays, too.
  375. * cp-gimplify.c (cp_gimplify_expr): Use VEC_INIT_EXPR_VALUE_INIT.
  376. * cp-tree.h (VEC_INIT_EXPR_IS_CONSTEXPR): New macro.
  377. (VEC_INIT_EXPR_VALUE_INIT): New macro.
  378. * semantics.c (potential_constant_expression): No longer static.
  379. Check VEC_INIT_EXPR_IS_CONSTEXPR.
  380. * tree.c (build_vec_init_expr): Handle value-init. Set
  381. VEC_INIT_EXPR_IS_CONSTEXPR and VEC_INIT_EXPR_VALUE_INIT.
  382. 2010-11-06 Nathan Froyd <froydnj@codesourcery.com>
  383. PR c++/45332
  384. * parser.c (cp_lexer_previous_token): New function.
  385. (cp_parser_member_declaration): Use previous token for error
  386. messages. Assume semicolon presence rather than grovelling for
  387. the next one.
  388. 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
  389. PR middle-end/46314
  390. * method.c (make_alias_for_thunk):
  391. Use targetm.asm_out.generate_internal_label.
  392. 2010-11-05 Jason Merrill <jason@redhat.com>
  393. PR c++/45473
  394. * search.c (look_for_overrides): A constructor is never virtual.
  395. 2010-11-05 Jakub Jelinek <jakub@redhat.com>
  396. PR c++/46160
  397. * cp-gimplify.c (cp_gimplify_expr): Drop volatile MEM_REFs
  398. on the RHS to avoid infinite recursion with gimplify_expr.
  399. 2010-11-05 Jason Merrill <jason@redhat.com>
  400. PR c++/46304
  401. * pt.c (tsubst_copy): Handle COMPLEX_CST.
  402. 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
  403. Fixed using the Objective-C 2.0 dot-syntax with class names.
  404. * parser.c (cp_parser_primary_expression): Recognize Objective-C
  405. 2.0 dot-syntax with class names and process it.
  406. (cp_parser_nonclass_name): Recognize Objective-C 2.0 dot-syntax
  407. with class names.
  408. (cp_parser_class_name): Same change.
  409. (cp_parser_simple_type_specifier): Tidied comments.
  410. 2010-11-04 Jason Merrill <jason@redhat.com>
  411. PR c++/46298
  412. * semantics.c (build_constexpr_constructor_member_initializers):
  413. Handle an enclosing STATEMENT_LIST.
  414. * semantics.c (speculative_access_check): New.
  415. * cp-tree.h: Declare it.
  416. * call.c (build_over_call): Use it.
  417. * class.c (type_has_constexpr_default_constructor): Use locate_ctor.
  418. * method.c (locate_ctor): Use push/pop_deferring_access_checks.
  419. 2010-11-03 Jason Merrill <jason@redhat.com>
  420. PR c++/46293
  421. * semantics.c (build_data_member_initialization): Handle
  422. value-init of aggregate empty base.
  423. PR c++/46289
  424. * call.c (can_convert_array): New fn.
  425. (build_aggr_conv): Use it.
  426. PR c++/46289
  427. * semantics.c (build_constexpr_constructor_member_initializers):
  428. Avoid ICE on error.
  429. 2010-11-02 Dodji Seketeli <dodji@redhat.com>
  430. * cp-tree.h (enum tsubst_flags)<tf_no_class_instantiations>:
  431. Remove.
  432. * pt.c (tsubst): Remove the use of tf_no_class_instantiations.
  433. 2010-11-03 Jason Merrill <jason@redhat.com>
  434. PR c++/46277
  435. * init.c (expand_default_init): Avoid ICE if we can't figure out
  436. which function is being called.
  437. 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
  438. * class.c (build_base_path, add_vcall_offset): Use build_zero_cst
  439. instead of fold_convert.
  440. * init.c (build_zero_init): Likewise.
  441. * typeck.c (cp_build_binary_op): Likewise.
  442. 2010-11-02 Dodji Seketeli <dodji@redhat.com>
  443. PR c++/46170
  444. PR c++/46162
  445. * pt.c (check_valid_ptrmem_cst_expr): Add a complain parameter to
  446. control diagnostic.
  447. (convert_nontype_argument, convert_nontype_argument): Pass the
  448. complain parameter down to check_valid_ptrmem_cst_expr.
  449. 2010-11-02 Dodji Seketeli <dodji@redhat.com>
  450. PR c++/45606
  451. * cp-tree.h (TEMPLATE_TYPE_PARM_SIBLING_PARMS): Remove.
  452. (struct template_parm_index_s)<num_siblings>: New field.
  453. (TEMPLATE_PARM_NUM_SIBLINGS): New accessor.
  454. (process_template_parm): Extend the API to accept the number of
  455. template parms in argument.
  456. (cp_set_underlying_type): Remove this.
  457. * class.c (build_self_reference): Require canonical type equality
  458. back on the self reference of class.
  459. * decl2.c (grokfield): Require canonical type equality back on
  460. typedef class fields.
  461. * name-lookup.c (pushdecl_maybe_friend): Require canonical type
  462. equality back on typedefs.
  463. * parser.c (cp_parser_template_parameter_list): Do not require
  464. canonical type equality on dependent types created during template
  465. parameters parsing.
  466. * pt.c (fixup_template_type_parm_type, fixup_template_parm_index)
  467. (fixup_template_parm, fixup_template_parms): New private
  468. functions.
  469. (current_template_args): Declare this.
  470. (process_template_parm): Pass the total number of template parms
  471. to canonical_type_parameter.
  472. (build_template_parm_index): Add a new argument to carry the total
  473. number of template parms.
  474. (reduce_template_parm_level, process_template_parm, make_auto):
  475. Adjust.
  476. (current_template_args): Fix this for template template
  477. parameters.
  478. (tsubst_template_parm): Split out of ...
  479. (tsubst_template_parms): ... this.
  480. (reduce_template_parm_level): Don't loose
  481. TEMPLATE_PARM_NUM_SIBLINGS when cloning a TEMPLATE_PARM_INDEX.
  482. (template_parm_to_arg): Extracted this function from
  483. current_template_args. Make it represent invalid template parms
  484. with an error_mark_node instead of a LIST_TREE containing an
  485. error_mark_node.
  486. (current_template_args): Use template_parm_to_arg.
  487. (dependent_template_arg_p): Consider an invalid template argument
  488. as dependent.
  489. (end_template_parm_list): Do not update template sibling parms
  490. here anymore. Use fixup_template_parms instead.
  491. (process_template_parm): Pass the number of template parms to
  492. canonical_type_parameter.
  493. (make_auto): Require structural equality on auto
  494. TEMPLATE_TYPE_PARM for now.
  495. (unify)<BOUND_TEMPLATE_TEMPLATE_PARM>: Coerce template parameters
  496. using all the arguments deduced so far.
  497. (tsubst)<TEMPLATE_TYPE_PARM>: Pass the number of sibling parms to
  498. canonical_type_parameter.
  499. * tree.c (cp_set_underlying_type): Remove.
  500. * typeck.c (get_template_parms_of_dependent_type)
  501. (incompatible_dependent_types_p): Remove.
  502. (structural_comptypes): Do not call incompatible_dependent_types_p
  503. anymore.
  504. (comp_template_parms_position): Re-organized. Take the length of
  505. template parms list in account.
  506. 2010-11-01 Jason Merrill <jason@redhat.com>
  507. * semantics.c (call_stack, call_stack_tick, cx_error_context): New.
  508. (last_cx_error_tick, push_cx_call_context, pop_cx_call_context): New.
  509. (cxx_eval_call_expression): Call push/pop_cx_call_context instead
  510. of giving follow-on errors.
  511. * error.c (maybe_print_constexpr_context): New.
  512. (cp_diagnostic_starter): Call it.
  513. * cp-tree.h: Declare cx_error_context.
  514. * semantics.c (cxx_eval_constant_expression): Explain
  515. unacceptable use of variable better.
  516. 2010-11-01 Gabriel Dos Reis <gdr@cse.tamu.edu>
  517. Jason Merrill <jason@redhat.com>
  518. * call.c (null_ptr_cst_p): Use maybe_constant_value.
  519. (set_up_extended_ref_temp): Support constant initialization.
  520. (initialize_reference): Adjust.
  521. * class.c (check_bitfield_decl): Use cxx_constant_value.
  522. * cvt.c (ocp_convert): Don't use integral_constant_value when
  523. converting to class type.
  524. * decl.c (finish_case_label): Use maybe_constant_value.
  525. (build_init_list_var_init): Support constant initialization.
  526. (check_initializer): Likewise. Reorganize.
  527. (cp_finish_decl): Likewise.
  528. (expand_static_init): Likewise.
  529. (compute_array_index_type): Use maybe_constant_value.
  530. Add complain parm.
  531. (create_array_type_for_decl, grokdeclarator): Pass it.
  532. (build_enumerator): Use cxx_constant_value.
  533. * decl2.c (grokfield): Use maybe_constant_init.
  534. * except.c (check_noexcept_r): Handle constexpr.
  535. (build_noexcept_spec): Use maybe_constant_value.
  536. * init.c (expand_default_init): Support constant initialization.
  537. (build_vec_init): Likewise.
  538. (constant_value_1): Adjust.
  539. (build_new_1): Adjust.
  540. * parser.c (cp_parser_constant_expression): Allow non-integral
  541. in C++0x mode.
  542. (cp_parser_direct_declarator): Don't fold yet in C++0x mode.
  543. (cp_parser_initializer_clause): Toss folded result if non-constant.
  544. * pt.c (fold_decl_constant_value): Remove.
  545. (convert_nontype_argument): Use maybe_constant_value. Give clearer
  546. error about overflow.
  547. (tsubst): Move array bounds handling into compute_array_index_type.
  548. (value_dependent_expression_p): Handle constant CALL_EXPR.
  549. (tsubst_decl): Don't set
  550. DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P yet.
  551. (tsubst_expr) [DECL_EXPR]: Pass it into cp_finish_decl.
  552. (instantiate_decl): Here too.
  553. * semantics.c (finish_static_assert): Use maybe_constant_value.
  554. (ensure_literal_type_for_constexpr_object): Make sure type is complete.
  555. (potential_constant_expression): Use maybe_constant_value.
  556. * tree.c (cast_valid_in_integral_constant_expression_p): Any cast
  557. is potentially valid in C++0x.
  558. * typeck2.c (store_init_value): Handle constant init.
  559. (check_narrowing): Use maybe_constant_value.
  560. (build_functional_cast): Set TREE_CONSTANT on literal T().
  561. * cp-tree.h (DECL_INTEGRAL_CONSTANT_VAR_P): Remove.
  562. (LOOKUP_ALREADY_DIGESTED): New.
  563. (compute_array_index_type): Adjust prototype.
  564. * semantics.c (constexpr_call): New datatype.
  565. (constexpr_call_table): New global table.
  566. (constexpr_call_hash): New.
  567. (constexpr_call_equal): Likewise.
  568. (maybe_initialize_constexpr_call_table): Likewise.
  569. (lookup_parameter_binding): Likewise.
  570. (cxx_eval_builtin_function_call): Likewise.
  571. (cxx_bind_parameters_in_call): Likewise.
  572. (cxx_eval_call_expression): Likewise.
  573. (cxx_eval_unary_expression): Likewise.
  574. (cxx_eval_binary_expression): Likewise.
  575. (cxx_eval_conditional_expression): Likewise.
  576. (cxx_eval_array_reference): Likewise.
  577. (cxx_eval_component_reference): Likewise.
  578. (cxx_eval_logical_expression): Likewise.
  579. (cxx_eval_object_construction): Likewise.
  580. (cxx_eval_constant_expression): Likewise.
  581. (cxx_eval_indirect_ref): Likewise.
  582. (cxx_constant_value): Likewise.
  583. (cxx_eval_bare_aggregate): Likewise.
  584. (adjust_temp_type): New.
  585. (reduced_constant_expression_p): New.
  586. (verify_constant): New.
  587. (cxx_eval_vec_init, cxx_eval_vec_init_1): New.
  588. (cxx_eval_outermost_constant_expr): New.
  589. (maybe_constant_value, maybe_constant_init): New.
  590. (cxx_eval_constant_expression): Use them.
  591. * pt.c (iterative_hash_template_arg): No longer static.
  592. * cp-tree.h: Declare fns.
  593. * cp-tree.h (register_constexpr_fundef): Declare.
  594. * decl.c (maybe_save_function_definition): New.
  595. (finish_function): Use it.
  596. * semantics.c (constexpr_fundef): New datatype.
  597. (constexpr_fundef_table): New global table.
  598. (constexpr_fundef_equal): New.
  599. (constexpr_fundef_hash): Likewise.
  600. (retrieve_constexpr_fundef): Likewise.
  601. (validate_constexpr_fundecl): Store in the table.
  602. (build_data_member_initialization): New fn.
  603. (build_constexpr_constructor_member_initializers): New.
  604. (register_constexpr_fundef): Define.
  605. (is_this_parameter): New.
  606. (get_function_named_in_call): Likewise.
  607. (get_nth_callarg): Likewise.
  608. (check_automatic_or_tls): New.
  609. (morally_constexpr_builtin_function_p): New.
  610. (potential_constant_expression): New.
  611. 2010-11-01 Jason Merrill <jason@redhat.com>
  612. * decl2.c (decl_constant_var_p): New fn.
  613. (decl_maybe_constant_var_p): New fn.
  614. (mark_used): Rework instantiation of things needed for constant
  615. expressions.
  616. * cp-tree.h: Declare new fns.
  617. * pt.c (instantiate_decl): Handle cp_unevaluated_operand.
  618. (always_instantiate_p): Use decl_maybe_constant_var_p.
  619. (instantiate_decl): Don't defer constexpr functions.
  620. * repo.c (repo_emit_p): Use decl_maybe_constant_var_p.
  621. * semantics.c (finish_id_expression): Use decl_constant_var_p.
  622. Check for valid name in constant expr after mark_used.
  623. 2010-10-31 Jason Merrill <jason@redhat.com>
  624. * class.c (is_really_empty_class): Work when type is not complete.
  625. (synthesized_default_constructor_is_constexpr): New.
  626. (add_implicitly_declared_members): Use it.
  627. (type_has_constexpr_default_constructor): Likewise.
  628. * cp-tree.h: Declare it.
  629. * method.c (synthesized_method_walk): Use it.
  630. * decl.c (pop_switch): Use EXPR_LOC_OR_HERE.
  631. * typeck.c (convert_for_assignment): Likewise.
  632. * parser.c (cp_parser_diagnose_invalid_type_name): Give helpful
  633. message about constexpr without -std=c++0x.
  634. * decl.c (grokdeclarator): Don't ICE on constexpr non-static data
  635. member.
  636. 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
  637. * class.c (layout_vtable_decl): Call build_array_of_n_type.
  638. (build_vtt, build_ctor_vtabl_group): Likewise.
  639. 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
  640. Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
  641. * parser.c (cp_parser_objc_at_property_declaration): Removed
  642. parsing of RID_COPIES and RID_IVAR. Updated call to
  643. objc_add_property_declaration.
  644. * typecheck.c (finish_class_member_access_expr): Call
  645. objc_maybe_build_component_ref instead of objc_build_setter_call.
  646. (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
  647. of objc_build_getter_call.
  648. 2010-10-27 Jason Merrill <jason@redhat.com>
  649. * cp-tree.h (cp_trait_kind): Add CPTK_IS_LITERAL_TYPE.
  650. * cxx-pretty-print.c (pp_cxx_trait_expression): Handle it.
  651. * semantics.c (trait_expr_value, finish_trait_expr): Likewise.
  652. * parser.c (cp_parser_primary_expression): Handle RID_IS_LITERAL_TYPE.
  653. (cp_parser_trait_expr): Likewise.
  654. 2010-10-27 Gabriel Dos Reis <gdr@cse.tamu.edu>
  655. Jason Merrill <jason@redhat.com>
  656. * decl.c (finish_case_label): Use decl_constant_value.
  657. * method.c (synthesized_method_walk): Track constexprness too.
  658. (process_subob_fn, walk_field_subobs): Likewise.
  659. (implicitly_declare_fn): Set DECL_DECLARED_CONSTEXPR_P.
  660. (defaulted_late_check): Handle DECL_DECLARED_CONSTEXPR_P.
  661. * class.c (add_implicitly_declared_members): Handle
  662. constexpr default ctor.
  663. * parser.c (cp_parser_ctor_initializer_opt_and_function_body):
  664. Make sure a constexpr ctor has an empty body.
  665. * class.c (type_has_constexpr_default_constructor): New.
  666. * cp-tree.h: Declare it.
  667. * init.c (perform_member_init): Complain about uninitialized
  668. member in constexpr ctor.
  669. (emit_mem_initializers): And uninitialized base.
  670. * decl.c (check_tag_decl): Fix typo.
  671. * semantics.c (valid_type_in_constexpr_fundecl_p): New fn.
  672. (is_valid_constexpr_fn): New fn.
  673. (validate_constexpr_fundecl): Use it.
  674. * decl.c (validate_constexpr_redeclaration): New.
  675. (duplicate_decls): Use it.
  676. (cp_finish_decl): Call validate_constexpr_fundecl and
  677. ensure_literal_type_for_constexpr_object here.
  678. (start_decl): Not here. Don't ICE on constexpr reference.
  679. (check_for_uninitialized_const_var): Don't handle constexpr specially.
  680. (grokfndecl): Set DECL_DECLARED_CONSTEXPR_P.
  681. (check_static_variable_definition): Give friendly message about
  682. missing constexpr.
  683. (grokdeclarator): Complain about typedef and volatile with constexpr.
  684. Reorganize. Give sorry about non-static data members in C++0x mode.
  685. (start_preparsed_function): Check validate_constexpr_fundecl here.
  686. (check_function_type): Not here.
  687. * decl2.c (finish_static_data_member_decl): Don't complain about
  688. in-class init.
  689. * parser.c (CP_PARSER_FLAGS_ONLY_TYPE_OR_CONSTEXPR): New.
  690. (cp_parser_condition): Pass it to cp_parser_decl_specifier_seq.
  691. (cp_parser_decl_specifier_seq): Handle it.
  692. (cp_parser_explicit_instantiation): Diagnose inline and constexpr.
  693. * class.c (check_bases): Propagate non-literality.
  694. (check_field_decls): Likewise.
  695. (finalize_literal_type_property): New.
  696. (check_bases_and_members): Call it.
  697. * cp-tree.h (TYPE_HAS_CONSTEXPR_CTOR): New.
  698. (lang_type_class): Add has_constexpr_ctor field.
  699. (DECL_DECLARED_CONSTEXPR_P): Strip template.
  700. * decl.c (grok_special_member_properties): Set
  701. TYPE_HAS_CONSTEXPR_CTOR.
  702. 2010-10-27 Jason Merrill <jason@redhat.com>
  703. * call.c (build_integral_nontype_arg_conv): New.
  704. * cp-tree.h: Declare it.
  705. * pt.c (convert_nontype_argument): Use it.
  706. * error.c (dump_simple_decl): Print constexpr.
  707. * cvt.c (build_up_reference): Use target_type for the temporary var.
  708. * except.c (build_throw): Set EXPR_LOCATION.
  709. * tree.c (build_cplus_new): Handle CONSTRUCTOR.
  710. * semantics.c (finish_compound_stmt): Avoid creating an
  711. unnecessary BIND_EXPR.
  712. * call.c (convert_like_real): Don't check narrowing if the element
  713. is also an initializer-list.
  714. 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
  715. * parser.c (cp_parser_objc_at_property_declaration): Recognize
  716. RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
  717. Do not use objc_set_property_attr, but use local variables
  718. instead. Detect repeated usage of setter, getter and ivar
  719. attributes. Improved error processing when a setter name does not
  720. end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
  721. that the token is a keyword. Updated call to
  722. objc_add_property_declaration.
  723. 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
  724. * parser.c (cp_parser_objc_property_decl): Renamed to
  725. cp_parser_objc_struct_declaration. Return the parsed trees
  726. instead of calling objc_add_property_variable directly. Detect
  727. missing or invalid declspecs. Implemented attributes. Do not eat
  728. the ';' at the end. Exit loop whenever a non-comma is parsed, not
  729. just EOF.
  730. (cp_parser_objc_at_property): Renamed to
  731. cp_parser_objc_at_property_declaration. Updated calls to
  732. objc_add_property_variable, now objc_add_property_declaration, and
  733. to cp_parser_objc_property_decl, now
  734. cp_parser_objc_struct_declaration. Rewritten all code to be more
  735. robust in dealing with syntax errors, and almost identical to the
  736. one in c_parser_objc_at_property_declaration.
  737. (cp_parser_objc_property_attrlist): Removed.
  738. (cp_parser_objc_method_prototype_list): Updated call to
  739. cp_parser_objc_at_property.
  740. (cp_parser_objc_method_definition_list): Same change.
  741. (cp_parser_objc_class_ivars): Detect a number of invalid
  742. declarations of instance variables and produce errors when they
  743. are found.
  744. 2010-10-26 Jason Merrill <jason@redhat.com>
  745. * tree.c (build_vec_init_expr): Split out from...
  746. (build_array_copy): ...here.
  747. * init.c (perform_member_init): Use it.
  748. * cp-tree.h: Declare it.
  749. * cp-gimplify.c (cp_gimplify_init_expr): Don't gimplify the slot for
  750. VEC_INIT_EXPR and AGGR_INIT_EXPR here. Drop pre/post parameters.
  751. (cp_gimplify_expr): Handle array default-initialization via
  752. VEC_INIT_EXPR.
  753. * tree.c (stabilize_expr): Handle xvalues properly.
  754. * call.c (build_over_call): Use argarray[0] for 'this' argument.
  755. * decl.c (finish_function): Don't look at function_depth.
  756. 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
  757. Implement opaque-enum-specifiers for C++0x.
  758. * cp-tree.h (SET_OPAQUE_ENUM_P): New.
  759. (OPAQUE_ENUM_P): New.
  760. (ENUM_FIXED_UNDERLYING_TYPE_P): New.
  761. (start_enum): Update prototype.
  762. (finish_enum_value_list): New prototype.
  763. * parser.c (cp_parser_elaborated_type_specifier): Issue a pedwarn if
  764. "enum class" is used in an elaborated-type-specifier.
  765. (cp_parser_enum_specifier): Rewrite to parse opaque-enum-specifiers.
  766. * decl.c (copy_type_enum): New.
  767. (finish_enum_value_list): New, with code from finish_enum.
  768. (finish_enum): A lot of code removed. Added a gcc_assert.
  769. (start_enum): Add parameters enumtype and is_new.
  770. Rewrite to work with opaque-enum-specifiers.
  771. * pt.c (maybe_process_partial_specialization): Allow for template
  772. specialization of enumerations, with a pedwarn.
  773. (lookup_template_class): Update call to start_enum. Call to
  774. SET_OPAQUE_ENUM_P.
  775. (tsubst_enum): Call to begin_scope, finish_scope and
  776. finish_enum_value_list.
  777. 2010-10-24 Nicola Pero <nicola.pero@meta-innovation.com>
  778. Removed Objective-C++ specific replacement of cxx_printable_name.
  779. * cp-objcp-common.h: Added LANG_HOOKS_DECL_PRINTABLE_NAME, set
  780. to cxx_printable_name for both C++ and Objective-C++.
  781. * cp-lang.h: Removed LANG_HOOKS_DECL_PRINTABLE_NAME.
  782. * error.c (dump_decl): For Objective-C++, call
  783. objc_maybe_printable_name here ...
  784. * tree.c (cxx_printable_name_internal): ... instead of here.
  785. 2010-10-23 Nicola Pero <nicola.pero@meta-innovation.com>
  786. * tree.c (cxx_printable_name_internal): In Objective-C++, call
  787. objc_maybe_printable_name.
  788. 2010-10-22 Jason Merrill <jason@redhat.com>
  789. PR c++/46129
  790. * pt.c (instantiate_class_template): Don't instantiate default
  791. arguments.
  792. PR c++/46103
  793. * init.c (build_vec_init): Handle memberwise move.
  794. 2010-10-21 Paolo Carlini <paolo.carlini@oracle.com>
  795. PR c++/46117
  796. * call.c (add_function_candidate): Don't use TREE_VALUE on null
  797. parmnode.
  798. 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
  799. * parser.c (cp_parser_objc_method_type): Mark inline. Return a
  800. bool instead of calling objc_set_method_type.
  801. (cp_parser_objc_method_signature): Updated calls to
  802. cp_parser_objc_method_type and to objc_build_method_signature.
  803. (cp_parser_objc_method_prototype_list): Updated calls to
  804. objc_add_method_declaration. Use token->type to determine if it
  805. is a class method or not.
  806. (cp_parser_objc_method_definition_list): Same change.
  807. 2010-10-20 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
  808. PR c++/46056
  809. * parser.c (cp_convert_range_for): Call cp_finish_decl
  810. instead of finish_expr_stmt.
  811. 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
  812. * cp-lang.c (finish_file): Removed.
  813. * decl2.c (cp_write_global_declarations): Call
  814. objc_write_global_declarations when compiling Objective-C++.
  815. 2010-10-19 Paolo Carlini <paolo.carlini@oracle.com>
  816. PR c++/46046
  817. * pt.c (add_to_template_args): Check extra_args for error_mark_node.
  818. (coerce_template_parms): Likewise for args.
  819. 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
  820. Implemented parsing @synthesize and @dynamic for Objective-C++.
  821. * parser.c (cp_parser_objc_method_definition_list): Recognize
  822. RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
  823. (cp_parser_objc_at_dynamic_declaration): New.
  824. (cp_parser_objc_at_synthesize_declaration): New.
  825. 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
  826. * parser.c (cp_parser_objc_identifier_list): Check the return
  827. value of cp_parser_identifier and react if it is error_mark_node.
  828. 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
  829. Merge from apple/trunk branch on FSF servers.
  830. 2005-03-01 Fariborz Jahanian <fjahanian@apple.com>
  831. Radar 4451818
  832. * call.c (standard_conversion, implicit_conversion): Ignore
  833. 'volatile' attribute of artificially volatized type in objc when
  834. evaluating various conversion weights.
  835. 2005-11-08 Fariborz Jahanian <fjahanian@apple.com>
  836. Radar 4330422
  837. * typeck.c (comp_ptr_ttypes_real): Remove the hack. un-volatize the
  838. artiificially 'volatized' type before doing pointer comparison.
  839. 2010-10-18 Jakub Jelinek <jakub@redhat.com>
  840. PR c/46015
  841. * semantics.c (finish_goto_stmt): Call mark_rvalue_use on computed
  842. goto destination.
  843. 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
  844. Merge from apple/trunk branch on FSF servers.
  845. 2006-04-19 Fariborz Jahanian <fjahanian@apple.com>
  846. Radar 4516785
  847. * parser.c (cp_parser_simple_type_specifier): Don't lookup for
  848. objc object types if type is scope qualified.
  849. 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
  850. Merge from apple/trunk branch on FSF servers.
  851. 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
  852. Radar 4133425
  853. * lex.c (unqualified_name_lookup_error): Issue diagnostic
  854. for private 'ivar' access.
  855. 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
  856. * parser.c (cp_parser_objc_visibility_spec): Update to use visibility
  857. enum, and handle @package.
  858. 2010-10-15 Jason Merrill <jason@redhat.com>
  859. PR c++/45983
  860. * tree.c (cp_build_qualified_type_real): Don't reuse a variant
  861. with a different typedef variant of the element type.
  862. 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
  863. merge from FSF apple 'trunk' branch.
  864. 2006 Fariborz Jahanian <fjahanian@apple.com>
  865. Radars 4436866, 4505126, 4506903, 4517826
  866. * typeck.c (finish_class_member_access_expr): Handle CLASS.property
  867. syntax.
  868. (cp_build_modify_expr): Likewise.
  869. * parser.c (cp_parser_objc_method_prototype_list): Handle @property.
  870. (cp_parser_objc_method_definition_list): Likewise.
  871. (cp_parser_objc_property_decl): New.
  872. (cp_parser_objc_property_attrlist): New.
  873. (cp_parser_objc_at_property): New.
  874. 2010-10-14 Richard Guenther <rguenther@suse.de>
  875. PR lto/44561
  876. * cp-tree.h (NULLPTR_TYPE_P): Adjust.
  877. * decl.c (cxx_init_decl_processing): Build a NULLPTR_TYPE node,
  878. use build_int_cst.
  879. * error.c (dump_type): Handle NULLPTR_TYPE.
  880. (dump_type_prefix): Likewise.
  881. (dump_type_suffix): Likewise.
  882. * mangle.c (write_type): Likewise.
  883. * name-lookup.c (arg_assoc_type): Likewise.
  884. * rtti.c (typeinfo_in_lib_p): Likewise.
  885. * pt.c (tsubst): Likewise.
  886. 2010-10-13 Jason Merrill <jason@redhat.com>
  887. PR c++/45984
  888. * class.c (fixup_attribute_variants): New fn.
  889. * cp-tree.h: Declare it.
  890. * pt.c (instantiate_class_template): Call it.
  891. * semantics.c (begin_class_definition): Call it.
  892. 2010-10-13 Richard Henderson <rth@redhat.com>
  893. * cp-lang.c (cp_eh_personality): Update call to
  894. build_personality_function.
  895. * except.c (choose_personality_routine): Update function comment.
  896. 2010-10-13 Richard Guenther <rguenther@suse.de>
  897. * tree.c (cp_free_lang_data): Free DECL_NAMESPACE_USERS and
  898. clear DECL_CHAIN of NAMESPACE_DECLs.
  899. 2010-10-11 Martin Jambor <mjambor@suse.cz>
  900. PR c++/45562
  901. * cp-tree.h (current_class_ref): Check that cp_function_chain is
  902. non-NULL.
  903. * call.c (build_cxx_call): Likewise.
  904. 2010-10-10 Jason Merrill <jason@redhat.com>
  905. * pt.c (tsubst_default_argument): Handle DEFAULT_ARG.
  906. (tsubst_default_arguments): Only do this once for cloned fns.
  907. (tsubst): Use typedef_variant_p. Handle LANG_TYPE. Don't
  908. handle expressions.
  909. (tsubst_expr): Avoid calling tsubst_expr for non-expressions.
  910. (tsubst_copy_and_build): Likewise.
  911. (tsubst_initializer_list): Likewise.
  912. (tsubst_copy): Change default to gcc_unreachable. Handle
  913. OVERLOAD and PTRMEM_CST.
  914. 2010-10-10 Jason Merrill <jason@redhat.com>
  915. PR lto/45959
  916. PR lto/45960
  917. * pt.c (tsubst_copy) [INTEGER_CST]: Instantiate the type.
  918. 2010-10-07 Andi Kleen <ak@linux.intel.com>
  919. * Make-lang.in (c++_OBJS): Remove dummy-checksum.o.
  920. (cc1plus-dummy): Remove.
  921. (cc1plus-checksum): Change to run checksum over object files
  922. and options only.
  923. 2010-10-08 Joseph Myers <joseph@codesourcery.com>
  924. * cp-objcp-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
  925. 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
  926. * cp-tree.def: Changed type of AT_ENCODE_EXPR from tcc_unary to
  927. tcc_expression.
  928. * cxx-pretty-print.c (pp_cxx_unary_expression): Added case for
  929. AT_ENCODE_EXPR.
  930. * error.c (dump_expr): Added case for AT_ENCODE_EXPR.
  931. * pt.c (tsubst_copy): Added case for AT_ENCODE_EXPR.
  932. (value_dependent_expression_p): Added case for AT_ENCODE_EXPR.
  933. (type_dependent_expression_p): Added case for AT_ENCODE_EXPR.
  934. * parser.c (cp_parser_objc_encode_expression): Updated comment.
  935. 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
  936. Merge from apple/trunk branch on FSF servers.
  937. 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
  938. Radar 4508851
  939. * parser.c (cp_parser_objc_interstitial_code): Recognize
  940. and parse RID_NAMESPACE keyword.
  941. 2010-10-07 Iain Sandoe <iains@gcc.gnu.org>
  942. * parser.c (cp_parser_objc_method_tail_params_opt): Peek new token after
  943. finding ellipsis, before checking for attributes.
  944. 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
  945. Merge from apple/trunk branch on FSF servers.
  946. * cp-tree.def: Added AT_ENCODE_EXPR here instead of to the no
  947. longer existing gcc/c-common.def.
  948. 2005-12-14 Fariborz Jahanian <fjahanian@apple.com>
  949. Radar 4278774
  950. * pt.c (tsubst_copy_and_build): Instantiate @endcode(T).
  951. * parser.c (cp_parser_objc_encode_expression): Build a templatized
  952. parse tree for @encode(T).
  953. 2005-12-14 Fariborz Jahanian <fjahanian@apple.com>
  954. Radar 4278774
  955. * c-common.def: Add new expression code AT_ENCODE_EXPR.
  956. 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
  957. PR c++/45908
  958. * typeck.c (cp_build_addr_expr_1): Add check for incomplete types in
  959. code folding offsetof-like computations.
  960. 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
  961. PR objc++/31125
  962. * parser.c (cp_parser_objc_class_interface): If no identifier
  963. follows an @interface token, stop parsing the interface after
  964. printing an error.
  965. (cp_parser_objc_class_implementation): If no identifier follows an
  966. @implementation token, stop parsing the implementation after
  967. printing an error.
  968. 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
  969. PR objc++/23707
  970. * parser.c (cp_parser_objc_method_keyword_params): If the required
  971. colon is not found while parsing parameters, stop parsing them.
  972. 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
  973. PR objc++/31126
  974. * parser.c (cp_parser_objc_class_ivars): Do not eat the EOF or
  975. @end after detecting it. Print an error if @end is found without
  976. a '}'.
  977. (cp_parser_objc_method_prototype_list): Do not eat the EOF after
  978. detecting it. Fixed reading the next token when continuing
  979. because of an error in a method signature. Print an error if EOF
  980. is found without an '@end'.
  981. (cp_parser_objc_method_definition_list): Same change.
  982. 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
  983. Merge from apple/trunk branch on FSF servers:
  984. 2005-10-17 Fariborz Jahanian <fjahanian@apple.com>
  985. Radar 4290840
  986. * parser.c (cp_parser_objc_method_keyword_params): Check for valid
  987. method parameters and issue error.
  988. (cp_parser_objc_method_definition_list): Check for invalid tokens
  989. which cannot start a function definition.
  990. 2005-10-14 Fariborz Jahanian <fjahanian@apple.com>
  991. Radar 4294425
  992. * parser.c (cp_parser_objc_message_args): Check for missing message
  993. arguments and syntax error.
  994. 2005-10-13 Fariborz Jahanian <fjahanian@apple.com>
  995. Radar 4261146
  996. * parser.c (cp_parser_objc_class_ivars): Check for @end/eof while
  997. looking for '}'.
  998. 2005-08-15 Ziemowit Laski <zlaski@apple.com>
  999. Radar 4093475
  1000. * parser.c (cp_parser_objc_interstitial_code): Catch stray
  1001. '{' and '}' tokens and issue appropriate errors.
  1002. 2005-08-02 Ziemowit Laski <zlaski@apple.com>
  1003. Radar 4185810
  1004. (cp_parser_statement_seq_opt): In addition to '}' and
  1005. end-of-file, a statement sequence may also be terminated
  1006. by a stray '@end'.
  1007. 2010-10-05 Joseph Myers <joseph@codesourcery.com>
  1008. * cp-tree.h (cxx_print_error_function,
  1009. cxx_initialize_diagnostics): Declare using diagnostic_context
  1010. typedef.
  1011. 2010-10-04 Andi Kleen <ak@linux.intel.com>
  1012. * Make-lang.in (g++, cc1plus): Add + to build rule.
  1013. 2010-10-04 Jason Merrill <jason@redhat.com>
  1014. * tree.c (decl_storage_duration): New.
  1015. * cp-tree.h: Declare it.
  1016. (duration_kind): Return values.
  1017. 2010-10-03 Jason Merrill <jason@redhat.com>
  1018. * typeck.c (require_complete_type_sfinae): Add complain parm to...
  1019. (require_complete_type): ...this function.
  1020. (cp_build_array_ref, convert_arguments): Use it.
  1021. (convert_for_initialization, cp_build_modify_expr): Likewise.
  1022. * cp-tree.h: Declare it.
  1023. * call.c (build_over_call): Use it.
  1024. 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
  1025. merge from FSF 'apple/trunk' branch.
  1026. 2006-01-30 Fariborz Jahanian <fjahanian@apple.com>
  1027. Radar 4386773
  1028. * cp/parser.c (cp_parser_objc_interstitial_code): For
  1029. @optional/@required set the optional/required flag.
  1030. 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
  1031. * parser.c (cp_lexer_get_preprocessor_token): Tidied up comments
  1032. and indentation when finding an Objective-C++ CPP_AT_NAME token.
  1033. 2010-09-29 Richard Guenther <rguenther@suse.de>
  1034. * cp-tree.h (CP_DECL_CONTEXT): Check DECL_FILE_SCOPE_P.
  1035. (CP_TYPE_CONTEXT): Similar.
  1036. (FROB_CONTEXT): Frob global_namespace to the global
  1037. TRANSLATION_UNIT_DECL.
  1038. * decl.c (cxx_init_decl_processing): Build a TRANSLATION_UNIT_DECL,
  1039. set DECL_CONTEXT of global_namespace to it.
  1040. (start_decl): Use CP_DECL_CONTEXT and test TYPE_P
  1041. instead of zeroing context.
  1042. (cp_finish_decl): Use DECL_FILE_SCOPE_P.
  1043. (grokfndecl): Likewise.
  1044. (start_preparsed_function): Likewise.
  1045. * name-lookup.c (maybe_push_decl): Use DECL_NAMESPACE_SCOPE_P.
  1046. (namespace_binding): Use SCOPE_FILE_SCOPE_P.
  1047. * pt.c (template_class_depth): Use CP_TYPE_CONTEXT.
  1048. (is_specialization_of_friend): Use CP_DECL_CONTEXT.
  1049. (push_template_decl_real): Likewise.
  1050. (tsubst_friend_class): Likewise. Adjust context comparisons.
  1051. (instantiate_class_template): Use CP_TYPE_CONTEXT.
  1052. (tsubst): Do not substitute into TRANSLATION_UNIT_DECL.
  1053. * cxx-pretty-print.c (pp_cxx_nested_name_specifier): Use
  1054. SCOPE_FILE_SCOPE_P.
  1055. 2010-09-29 Yao Qi <yao@codesourcery.com>
  1056. * decl.c (get_atexit_node): Fix typo.
  1057. 2010-09-28 Jason Merrill <jason@redhat.com>
  1058. * tree.c (lvalue_kind): Rename from lvalue_p_1, make nonstatic.
  1059. (real_lvalue_p): Take const_tree.
  1060. * cp-tree.h: Adjust.
  1061. * typeck.c (lvalue_or_else): Make temporary arg a permerror.
  1062. (cp_build_addr_expr_1): Likewise.
  1063. 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
  1064. Partially merged from apple/trunk branch on FSF servers:
  1065. 2006-04-26 Fariborz Jahanian <fjahanian@apple.com>
  1066. Radar 3803157 (method attributes)
  1067. * parser.c (cp_parser_objc_method_keyword_params): Handle attributes.
  1068. (cp_parser_objc_method_tail_params_opt): Likewise.
  1069. (cp_parser_objc_method_signature): Likewise.
  1070. (cp_parser_objc_method_maybe_bad_prefix_attributes): New.
  1071. (cp_parser_objc_method_prototype_list): Handle attributes.
  1072. (cp_parser_objc_method_definition_list): Likewise.
  1073. 2010-09-28 Richard Henderson <rth@redhat.com>
  1074. * cp-lang.c: Include "target.h".
  1075. (cp_eh_personality): Use targetm.except_unwind_info.
  1076. * Make-lang.in (cp-lang.o): Update deps.
  1077. 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
  1078. * parser.c (cp_parser_objc_valid_prefix_attributes): New.
  1079. (cp_parser_declaration): Parse prefix attributes for ObjC++.
  1080. (cp_parser_objc_protocol_declaration): Handle attributes.
  1081. (cp_parser_objc_class_interface): Likewise.
  1082. (cp_parser_objc_declaration): Likewise.
  1083. 2010-09-27 Jason Merrill <jason@redhat.com>
  1084. Require lvalues as specified by the standard.
  1085. * typeck.c (lvalue_or_else): Use real_lvalue_p.
  1086. (cp_build_addr_expr_1): Split out of cp_build_unary_op.
  1087. (cp_build_addr_expr, cp_build_addr_expr_strict): Interfaces.
  1088. (decay_conversion, get_member_function_from_ptrfunc): Adjust.
  1089. (build_x_unary_op, build_reinterpret_cast_1): Adjust.
  1090. (build_const_cast_1): Adjust.
  1091. * cp-tree.h: Declare new fns.
  1092. * call.c (build_this, convert_like_real, build_over_call): Adjust.
  1093. (initialize_reference): Adjust.
  1094. * class.c (build_base_path, convert_to_base_statically): Adjust.
  1095. (build_vfn_ref, resolve_address_of_overloaded_function): Adjust.
  1096. * cvt.c (build_up_reference, convert_to_reference): Adjust.
  1097. * decl.c (register_dtor_fn): Adjust.
  1098. * decl2.c (build_offset_ref_call_from_tree): Adjust.
  1099. * except.c (initialize_handler_parm): Adjust.
  1100. * init.c (build_offset_ref, build_delete, build_vec_delete): Adjust.
  1101. * rtti.c (build_dynamic_cast_1, tinfo_base_init): Adjust.
  1102. * tree.c (stabilize_expr): Adjust.
  1103. 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
  1104. Merge from apple/trunk branch on FSF servers:
  1105. 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
  1106. Radar 4229905
  1107. * typeck.c (composite_pointer_type): Call objc_have_common_type
  1108. when comparing two objective-c pointer types.
  1109. 2005-07-18 Ziemowit Laski <zlaski@apple.com>
  1110. Radar 4175534
  1111. * call.c (standard_conversion): Do not issue warnings when
  1112. comparing ObjC pointer types.
  1113. 2005-06-22 Ziemowit Laski <zlaski@apple.com>
  1114. Radar 4154928
  1115. * call.c (standard_conversion): Allow for a pointer conversion
  1116. between any two ObjC pointer types.
  1117. * typeck.c (composite_pointer_type): Determine common type
  1118. for two ObjC pointer types.
  1119. 2010-09-24 Jan Hubicka <jh@suse.cz>
  1120. * decl.c (finish_function): Use decl_replaceable_p
  1121. * method.c (make_alias_for_thunk): Update call of
  1122. cgraph_same_body_alias.
  1123. 2010-09-24 Jason Merrill <jason@redhat.com>
  1124. * decl.c (compute_array_index_type): Remember type dependence of
  1125. array bound.
  1126. * pt.c (dependent_type_p_r): Don't recompute it here.
  1127. * error.c (dump_expr) [CASE_CONVERT]: Print conversion between
  1128. reference and pointer to the same type as "*" or "&".
  1129. 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
  1130. * typeck.c (warn_args_num): Use warning 'too many arguments to
  1131. method [methodname]' for an Objective-C method instead of the less
  1132. satisfactory 'too many arguments to function' (with no method
  1133. name).
  1134. 2010-09-21 Jason Merrill <jason@redhat.com>
  1135. * mangle.c (write_expression) [SCOPE_REF]: Only do -fabi-version=1
  1136. special handling if we know the member.
  1137. 2010-09-18 Jason Merrill <jason@redhat.com>
  1138. * call.c (compare_ics): Do lvalue/rvalue reference binding
  1139. comparison for ck_list, too.
  1140. 2010-09-15 Jason Merrill <jason@redhat.com>
  1141. * semantics.c (finish_id_expression): Diagnose use of function
  1142. parms in evaluated context outside function body.
  1143. * decl2.c (grokbitfield): Diagnose non-integral width.
  1144. * call.c (convert_like_real): Use the underlying type of the
  1145. reference for the temporary.
  1146. 2010-09-15 Jakub Jelinek <jakub@redhat.com>
  1147. PR c++/45635
  1148. * class.c (build_vtbl_initializer): Use fn instead of init's operand
  1149. as first argument to FDESC_EXPR.
  1150. 2010-09-15 Paolo Carlini <paolo.carlini@oracle.com>
  1151. PR c++/45665
  1152. * decl.c (grokdeclarator): Check build_memfn_type return value
  1153. for error_mark_node.
  1154. 2010-09-13 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
  1155. * semantics.c (finish_for_stmt): Always test flag_new_for_scope.
  1156. (begin_range_for_stmt): Likewise.
  1157. 2010-09-11 Rodrigo Rivas <rodrigorivascosta@gmail.com>
  1158. Implement range-based for-statements.
  1159. * cp-tree.def (RANGE_FOR_STMT): New.
  1160. * cp-tree.h (RANGE_FOR_DECL, RANGE_FOR_EXPR, RANGE_FOR_BODY): New.
  1161. (cp_convert_range_for): Declare.
  1162. * pt.c (tsubst_expr): Add RANGE_FOR_STMT.
  1163. (tsubst_copy_and_build): perform_koenig_lookup takes extra argument.
  1164. * semantics.c (begin_range_for_stmt): New.
  1165. (finish_range_for_decl): New.
  1166. (finish_for_stmt): Accept also RANGE_FOR_STMT.
  1167. (perform_koenig_lookup): Add extra argument include_std.
  1168. * parser.c (cp_parser_c_for): New with code from
  1169. cp_parser_iteration_statement().
  1170. (cp_parser_range_for): New.
  1171. (cp_convert_range_for): New.
  1172. (cp_parser_iteration_statement): Add range-for support.
  1173. (cp_parser_condition): Adjust comment.
  1174. (cp_parser_postfix_expression): perform_koenig_lookup takes extra
  1175. argument.
  1176. * dump.c (cp_dump_tree): Add RANGE_FOR_STMT.
  1177. * cxx-pretty-print.c: Likewise.
  1178. * lex.c (cxx_init): Likewise.
  1179. * name-lookup.c (lookup_function_nonclass): Add extra argument
  1180. include_std.
  1181. (lookup_arg_dependent): Likewise.
  1182. * name-lookup.h: Likewise.
  1183. 2010-09-10 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
  1184. PR c++/43824
  1185. * error.c (maybe_warn_cpp0x): Add new warning
  1186. CPP0X_INLINE_NAMESPACES.
  1187. * parser.c (cp_parser_namespace_definition): Likewise.
  1188. * cp-tree.h (cpp0x_warn_str): Likewise.
  1189. 2010-09-10 Richard Guenther <rguenther@suse.de>
  1190. * decl.c (reshape_init_vector): For VECTOR_TYPEs, use
  1191. TYPE_VECTOR_SUBPARTS instead of TYPE_DEBUG_REPRESENTATION_TYPE.
  1192. 2010-09-10 Jan Hubicka <jh@suse.cz>
  1193. PR tree-optimization/45605
  1194. * cp/class.c (build_vtbl_initializer): Avoid wrong type conversion in
  1195. ADDR_EXPR.
  1196. 2010-09-08 Jakub Jelinek <jakub@redhat.com>
  1197. PR c++/45588
  1198. * pt.c (tsubst) <case INTEGER_TYPE>: Call mark_rvalue_use
  1199. before calling fold_decl_constant_value.
  1200. 2010-09-07 Arnaud Charlet <charlet@adacore.com>
  1201. * cp-tree.h (build_enumerator): Add new location_t parameter.
  1202. (build_lang_decl_loc): New function.
  1203. * decl.c (build_enumerator): New parameter loc. Use it when calling
  1204. build_decl. Replace build_lang_decl with build_lang_decl_loc.
  1205. * pt.c (tsubst_enum): Adjust call to build_enumerator.
  1206. * parser.c (cp_parser_enumerator_definition): Ditto.
  1207. * lex.c (build_lang_decl_loc): New function.
  1208. 2010-09-06 Dodji Seketeli <dodji@redhat.com>
  1209. PR c++/45200
  1210. PR c++/45293
  1211. PR c++/45558
  1212. * tree.c (strip_typedefs): Strip typedefs from the context of
  1213. TYPENAME_TYPEs.
  1214. 2010-09-06 Mark Mitchell <mark@codesourcery.com>
  1215. * typeck.c (cp_build_binary_op): Call do_warn_double_promotion.
  1216. * call.c (build_conditional_expr): Likewise.
  1217. (convert_arg_to_ellipsis): Likewise.
  1218. 2010-09-06 Arnaud Charlet <charlet@adacore.com>
  1219. * parser.c (make_pointer_declarator, make_reference_declarator,
  1220. make_call_declarator, make_array_declarator): Set declarator->id_loc.
  1221. (cp_parser_init_declarator): Adjust location of decl if appropriate.
  1222. 2010-09-06 Jason Merrill <jason@redhat.com>
  1223. * call.c (implicit_conversion): Fix value-init of enums.
  1224. (convert_like_real): Likewise.
  1225. * decl.c (cp_finish_decl): Don't change init for auto deduction.
  1226. * pt.c (fold_non_dependent_expr_sfinae): Split out from...
  1227. (fold_non_dependent_expr): ...here.
  1228. (convert_nontype_argument): Use it. Take complain parm.
  1229. Use perform_implicit_conversion instead of ocp_convert.
  1230. Allow cv-qual changes.
  1231. (convert_template_argument): Pass complain down.
  1232. (tsubst_template_arg): Suppress constant expression warnings.
  1233. Don't fold here.
  1234. * method.c (synthesized_method_walk): In constructors, also check
  1235. subobject destructors.
  1236. * semantics.c (finish_compound_literal): Always build a
  1237. TARGET_EXPR.
  1238. 2010-08-30 Paolo Carlini <paolo.carlini@oracle.com>
  1239. PR c++/45043
  1240. * decl.c (grokdeclarator): Use MAIN_NAME_P only on IDENTIFIER_NODEs.
  1241. 2010-08-30 Jakub Jelinek <jakub@redhat.com>
  1242. PR middle-end/45423
  1243. * parser.c (cp_parser_omp_atomic): Handle boolean
  1244. {PRE,POST}_INCREMENT.
  1245. 2010-08-29 Jason Merrill <jason@redhat.com>
  1246. PR c++/44991
  1247. * parser.c (cp_parser_parameter_declaration): Pop parameter decls
  1248. after tentative parsing.
  1249. 2010-08-22 Joseph Myers <joseph@codesourcery.com>
  1250. * Make-lang.in (g++spec.o): Update dependencies.
  1251. * g++spec.c: Include opts.h
  1252. (MATH_LIBRARY, LIBSTDCXX): Remove initial "-l".
  1253. (lang_specific_driver): Use cl_decoded_option structures.
  1254. 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
  1255. * call.c: Use FOR_EACH_VEC_ELT.
  1256. * class.c: Likewise.
  1257. * decl.c: Likewise.
  1258. * decl2.c: Likewise.
  1259. * error.c: Likewise.
  1260. * except.c: Likewise.
  1261. * mangle.c: Likewise.
  1262. * method.c: Likewise.
  1263. * name-lookup.c: Likewise.
  1264. * parser.c: Likewise.
  1265. * pt.c: Likewise.
  1266. * repo.c: Likewise.
  1267. * semantics.c: Likewise.
  1268. * typeck2.c: Likewise.
  1269. 2010-08-19 Jason Merrill <jason@redhat.com>
  1270. * call.c (reference_related_p): Check for error_mark_node.
  1271. (add_function_candidate): Check it instead of
  1272. same_type_ignoring_top_level_qualifiers_p.
  1273. PR c++/45315
  1274. * init.c (build_new_1): Don't use build_value_init in a template.
  1275. (build_value_init): Make sure we don't.
  1276. PR c++/45307
  1277. * cp-gimplify.c (cp_gimplify_expr): Also remove assignment
  1278. of empty class CONSTRUCTOR.
  1279. * except.c (pending_noexcept, pending_noexcept_checks): New.
  1280. (perform_deferred_noexcept_checks): New.
  1281. (maybe_noexcept_warning): Split from...
  1282. (finish_noexcept_expr): ...here. Adjust.
  1283. * decl2.c (cp_write_global_declarations): Call
  1284. perform_deferred_noexcept_checks.
  1285. * cp-tree.h: And declare it.
  1286. 2010-08-18 Nathan Froyd <froydnj@codesourcery.com>
  1287. PR c++/45049
  1288. * name-lookup.c (push_overloaded_decl): Change DECL_CHAIN to
  1289. TREE_CHAIN.
  1290. 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
  1291. * class.c (note_name_declared_in_class): Make in 'extern "C"' blocks,
  1292. or if -fms-extensions is enabled check, check permissive.
  1293. 2010-08-09 Jason Merrill <jason@redhat.com>
  1294. PR c++/45236
  1295. * pt.c (lookup_template_class): Don't re-coerce outer parms.
  1296. 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
  1297. * call.c (add_builtin_candidates): Use VECs for local variable
  1298. `types'. Adjust remainder of function accordingly.
  1299. 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
  1300. * name-lookup.c (is_associated_namespace): Convert local variables
  1301. to be VECs instead of TREE_LISTs.
  1302. 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
  1303. * tree.c (varargs_function_p): Use stdarg_p.
  1304. 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
  1305. * parser.c (cp_default_arg_entry): Declare. Declare a VEC of it.
  1306. (cp_unparsed_functions_entry): Declare. Declare a VEC of it.
  1307. (cp_parser) [unparsed_functions_queues]: Rename to unparsed_queues.
  1308. Change type to a VEC.
  1309. (unparsed_funs_with_default_args): Define.
  1310. (unparsed_funs_with_definitions): Define.
  1311. (push_unparsed_function_queues): New function.
  1312. (cp_parser_new): Call it.
  1313. (pop_unparsed_function_queues): New function.
  1314. (cp_parser_class_specifier): Adjust processing of unparsed functions.
  1315. (cp_parser_template_declaration_after_export): Use VEC_safe_push.
  1316. (cp_parser_save_member_function_body): Likewise.
  1317. (cp_parser_late_parsing_for_member): Call push_unparsed_function_queues
  1318. and pop_unparsed_function_queues.
  1319. (cp_parser_late_parsing_default_args): Likewise.
  1320. (cp_parser_save_default_args): Use VEC_safe_push.
  1321. 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
  1322. * name-lookup.h (cp_label_binding): Declare. Declare a VEC type
  1323. containing it.
  1324. (cp_binding_level): Convert shadowed_labels and dead_vars_from_for
  1325. fields to VECs.
  1326. * decl.c (poplevel): Adjust for type changes.
  1327. (declare_local_label): Likewise.
  1328. 2010-08-06 Jason Merrill <jason@redhat.com>
  1329. * typeck.c (complete_type_or_maybe_complain): Split out from...
  1330. (complete_type_or_else): Here.
  1331. (build_class_member_access_expr): Call it.
  1332. (finish_class_member_access_expr): Likewise.
  1333. * call.c (build_special_member_call): Likewise.
  1334. * cvt.c (build_expr_type_conversion): Likewise.
  1335. * init.c (build_new): Likewise.
  1336. * typeck2.c (build_functional_cast): Likewise.
  1337. * cp-tree.h: Declare it.
  1338. * init.c (build_value_init): Add complain parm.
  1339. (build_value_init_noctor): Likewise.
  1340. (perform_member_init): Pass it.
  1341. (expand_aggr_init_1): Likewise.
  1342. (build_new_1): Likewise.
  1343. (build_vec_init): Likewise.
  1344. * pt.c (tsubst_expr): Likewise.
  1345. * typeck2.c (build_functional_cast): Likewise.
  1346. * cp-tree.h: Adjust.
  1347. * tree.c (build_target_expr_with_type): Handle error_mark_node.
  1348. * typeck.c (decay_conversion): Any expression with type nullptr_t
  1349. decays to nullptr.
  1350. 2010-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
  1351. PR c++/45112
  1352. * decl.c (duplicate_decls): Merge DECL_USER_ALIGN and DECL_PACKED.
  1353. 2010-07-27 Jason Merrill <jason@redhat.com>
  1354. * pt.c (tsubst_expr) [DECL_EXPR]: Handle getting an AGGR_INIT_EXPR
  1355. from build_value_init.
  1356. * init.c (build_value_init_noctor): Give error for unknown array
  1357. bound.
  1358. 2010-07-27 Joseph Myers <joseph@codesourcery.com>
  1359. * cp-objcp-common.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
  1360. 2010-07-27 Joseph Myers <joseph@codesourcery.com>
  1361. * cp-objcp-common.c (cxx_initialize_diagnostics): First call
  1362. c_common_initialize_diagnostics.
  1363. * cp-objcp-common.h (LANG_HOOKS_OPTION_LANG_MASK,
  1364. LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
  1365. 2010-07-21 Jason Merrill <jason@redhat.com>
  1366. * tree.c (cp_tree_equal): Fix CONSTRUCTOR handling.
  1367. * parser.c (cp_parser_init_declarator): Pass LOOKUP_NORMAL
  1368. to cp_finish_decl.
  1369. 2010-07-20 Jeffrey Yasskin <jyasskin@google.com>
  1370. PR c++/44641
  1371. * pt.c (instantiate_class_template): Propagate the template's
  1372. location to its instance.
  1373. 2010-07-20 Jason Merrill <jason@redhat.com>
  1374. PR c++/44967
  1375. * pt.c (tsubst_copy_and_build): Rework last change.
  1376. PR c++/44967
  1377. * pt.c (tsubst_copy_and_build): Handle partial substitution of
  1378. CALL_EXPR.
  1379. 2010-07-19 Jason Merrill <jason@redhat.com>
  1380. PR c++/44996
  1381. * semantics.c (finish_decltype_type): Correct decltype
  1382. of parenthesized rvalue reference variable.
  1383. PR c++/44969
  1384. * tree.c (cp_tree_equal): Compare type of *CAST_EXPR.
  1385. * pt.c (iterative_hash_template_arg): Hash type of *CAST_EXPR.
  1386. 2010-07-19 Paolo Carlini <paolo.carlini@oracle.com>
  1387. PR c++/44969
  1388. * typeck.c (build_x_compound_expr_from_list): Add tsubst_flags_t
  1389. parameter.
  1390. * cp-tree.h: Adjust declaration.
  1391. * init.c (perform_member_init): Adjust caller.
  1392. * decl.c (grok_reference_init, cp_finish_decl): Likewise.
  1393. * typeck2.c (store_init_value): Likewise.
  1394. (build_functional_cast): Pass complain argument to
  1395. build_x_compound_expr_from_list.
  1396. 2010-07-16 Jason Merrill <jason@redhat.com>
  1397. PR c++/32505
  1398. * pt.c (process_partial_specialization): Diagnose partial
  1399. specialization after instantiation.
  1400. (most_specialized_class): Add complain parm.
  1401. * ptree.c (cxx_print_xnode): Handle TEMPLATE_INFO.
  1402. 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
  1403. * init.c (build_new_1): Use cp_build_function_call_nary instead of
  1404. cp_build_function_call.
  1405. 2010-07-15 Jason Merrill <jason@redhat.com>
  1406. PR c++/44909
  1407. * call.c (add_function_candidate): If we're working on an implicit
  1408. declaration, don't consider candidates that won't match.
  1409. * typeck.c (same_type_ignoring_top_level_qualifiers_p): Now a fn.
  1410. * cp-tree.h (same_type_ignoring_top_level_qualifiers_p): Adjust.
  1411. Revert:
  1412. * cp-tree.h (struct lang_type_class): Add has_user_opeq.
  1413. (TYPE_HAS_USER_OPEQ): New.
  1414. * decl.c (grok_special_member_properties): Set it.
  1415. * class.c (add_implicitly_declared_members): Don't lazily declare
  1416. constructors/operator= if a base or member has a user-declared one.
  1417. (check_bases_and_members, check_bases): Adjust.
  1418. (check_field_decls, check_field_decl): Adjust.
  1419. 2010-07-15 Anatoly Sokolov <aesok@post.ru>
  1420. * decl.c (integer_three_node): Remove.
  1421. (cxx_init_decl_processing): Do not initialize the integer_three_node.
  1422. * cp-tree.h (integer_three_node): Remove.
  1423. 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
  1424. * cp-tree.h: Carefully replace TREE_CHAIN with DECL_CHAIN.
  1425. * call.c: Likewise.
  1426. * class.c: Likewise.
  1427. * cp-gimplify.c: Likewise.
  1428. * decl.c: Likewise.
  1429. * decl2.c: Likewise.
  1430. * init.c: Likewise.
  1431. * mangle.c: Likewise.
  1432. * name-lookup.c: Likewise.
  1433. * optimize.c: Likewise.
  1434. * parser.c: Likewise.
  1435. * pt.c: Likewise.
  1436. * rtti.c: Likewise.
  1437. * search.c: Likewise.
  1438. * semantics.c: Likewise.
  1439. * typeck.c: Likewise.
  1440. * typeck2.c: Likewise.
  1441. 2010-07-14 Jason Merrill <jason@redhat.com>
  1442. * init.c (sort_mem_initializers): Rename "field_type" to "ctx".
  1443. (build_field_list): Cache field type.
  1444. Implement C++0x unrestricted unions (N2544)
  1445. * class.c (check_field_decl): Loosen union handling in C++0x.
  1446. * method.c (walk_field_subobs): Split out from...
  1447. (synthesized_method_walk): ...here. Set msg before loops.
  1448. (process_subob_fn): Check for triviality in union members.
  1449. * init.c (sort_mem_initializers): Splice out uninitialized
  1450. anonymous unions and union members.
  1451. (push_base_cleanups): Don't automatically destroy anonymous unions
  1452. and union members.
  1453. 2010-07-13 Jason Merrill <jason@redhat.com>
  1454. PR c++/44909
  1455. * cp-tree.h (struct lang_type_class): Add has_user_opeq.
  1456. (TYPE_HAS_USER_OPEQ): New.
  1457. * decl.c (grok_special_member_properties): Set it.
  1458. * class.c (add_implicitly_declared_members): Don't lazily declare
  1459. constructors/operator= if a base or member has a user-declared one.
  1460. (check_bases_and_members, check_bases): Adjust.
  1461. (check_field_decls, check_field_decl): Adjust.
  1462. * method.c (synthesized_method_walk): Initialize check_vdtor.
  1463. PR c++/44540
  1464. * mangle.c (write_type): Canonicalize.
  1465. (canonicalize_for_substitution): Retain cv-quals on FUNCTION_TYPE.
  1466. (write_CV_qualifiers_for_type): Ignore them in abi>=5.
  1467. 2010-07-13 Paolo Carlini <paolo.carlini@oracle.com>
  1468. PR c++/44908
  1469. * call.c (convert_like_real): Adjust convert_ptrmem call, pass
  1470. complain argument.
  1471. * typeck.c (get_delta_difference): Update prototype, add a
  1472. tsubst_flags_t parameter; update get_delta_difference_1 calls and
  1473. add checks for error_mark_node.
  1474. (get_delta_difference_1): Update prototype, add a tsubst_flags_t
  1475. parameter; update lookup_base call.
  1476. (build_ptrmemfunc): Update prototype, add a tsubst_flags_t
  1477. parameter; update get_delta_difference call and add check for
  1478. error_mark_node.
  1479. (convert_ptrmem): Update prototype, add a tsubst_flags_t
  1480. parameter; update get_delta_difference call and add check for
  1481. error_mark_node; update build_ptrmemfunc call.
  1482. (build_static_cast_1): Adjust convert_ptrmem call.
  1483. (expand_ptrmemfunc_cst): Adjust get_delta_difference call.
  1484. (cp_build_unary_op): Adjust build_ptrmemfunc call.
  1485. * cvt.c (cp_convert_to_pointer, convert_force): Adjust convert_ptrmem
  1486. and build_ptrmemfunc calls.
  1487. * cp-tree.h: Update build_ptrmemfunc and convert_ptrmem prototypes.
  1488. 2010-07-12 Paolo Carlini <paolo.carlini@oracle.com>
  1489. PR c++/44907
  1490. * call.c (build_temp): Add tsubst_flags_t complain parameter;
  1491. adjust build_special_member_call call, pass complain.
  1492. (convert_like_real): Adjust build_temp call, pass complain.
  1493. 2010-07-09 Jason Merrill <jason@redhat.com>
  1494. PR c++/43120
  1495. * cp-tree.h (BV_LOST_PRIMARY): New macro.
  1496. * class.c (update_vtable_entry_for_fn): Fix covariant thunk logic.
  1497. Set BV_LOST_PRIMARY.
  1498. (build_vtbl_initializer): Check BV_LOST_PRIMARY.
  1499. 2010-07-08 Jason Merrill <jason@redhat.com>
  1500. PR c++/43120
  1501. * class.c (update_vtable_entry_for_fn): Fix handling of dummy
  1502. virtual bases for covariant thunks.
  1503. 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
  1504. * cp-tree.h: Do not include toplev.h.
  1505. 2010-07-06 Jason Merrill <jason@redhat.com>
  1506. PR c++/44703
  1507. * call.c (is_std_init_list): Look through typedefs.
  1508. PR c++/44778
  1509. * init.c (build_offset_ref): If scope isn't dependent,
  1510. don't exit early. Look at TYPE_MAIN_VARIANT.
  1511. * pt.c (tsubst_copy) [OFFSET_REF]: Do substitution.
  1512. * error.c (dump_function_decl): Don't crash on null DECL_NAME.
  1513. 2010-07-06 Shujing Zhao <pearly.zhao@oracle.com>
  1514. * cp-tree.h (impl_conv_void): New type.
  1515. (convert_to_void): Adjust prototype.
  1516. * cvt.c (convert_to_void): Use impl_conv_void, emit and adjust the
  1517. diagnostic for easy translation. Change caller.
  1518. * typeck.c: Update call to convert_to_void.
  1519. * semantics.c: Likewise.
  1520. * init.c: Likewise.
  1521. 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
  1522. * decl.c (cp_finish_decl): Call add_local_decl.
  1523. * optimize.c (clone_body): Adjust for new type of cfun->local_decls.
  1524. 2010-07-05 Paolo Carlini <paolo.carlini@oracle.com>
  1525. * pt.c (tsubst): Early declare code = TREE_CODE (t) and use it
  1526. throughout.
  1527. 2010-07-05 Shujing Zhao <pearly.zhao@oracle.com>
  1528. PR c++/22138
  1529. * parser.c (cp_parser_primary_expression): Error if local template is
  1530. declared.
  1531. 2010-07-02 Le-Chun Wu <lcwu@google.com>
  1532. PR/44128
  1533. * name-lookup.c (pushdecl_maybe_friend): Warn when a local decl
  1534. (variable or type) shadows another type.
  1535. 2010-07-02 Jakub Jelinek <jakub@redhat.com>
  1536. PR c++/44780
  1537. * typeck.c (convert_for_assignment): When converting a convertible
  1538. vector type or objc++ types, call mark_rvalue_use.
  1539. * typeck2.c (build_m_component_ref): Use return values from
  1540. mark_rvalue_use or mark_lvalue_use.
  1541. * class.c (build_base_path): Likewise.
  1542. * call.c (build_conditional_expr): Likewise.
  1543. 2010-07-02 Paolo Carlini <paolo.carlini@oracle.com>
  1544. PR c++/44039
  1545. * pt.c (tsubst_baselink): Return error_mark_node if lookup_fnfields
  1546. returns NULL_TREE.
  1547. 2010-07-01 Richard Guenther <rguenther@suse.de>
  1548. * cp-gimplify.c (cp_gimplify_expr): Open-code the rhs
  1549. predicate we are looking for, allow non-gimplified
  1550. INDIRECT_REFs.
  1551. 2010-06-30 Paolo Carlini <paolo.carlini@oracle.com>
  1552. PR c++/44628
  1553. * typeck.c (cp_build_unary_op): Early return error_mark_node when
  1554. arg is NULL_TREE too.
  1555. * call.c (convert_class_to_reference): Return error_mark_node when
  1556. expr is NULL_TREE.
  1557. 2010-06-30 Michael Matz <matz@suse.de>
  1558. * repo.c (finish_repo): Fix typo.
  1559. 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
  1560. * parser.c (cp_parser_omp_for_loop): Use a VEC for for_block.
  1561. 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
  1562. * repo.c (pending_repo): Change type to a VEC.
  1563. (finish_repo): Adjust for new type of pending_repo.
  1564. (repo_emit_p): Likewise.
  1565. 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
  1566. * tree.c: Include gimple.h. Do not include tree-flow.h
  1567. * decl.c: Do not include tree-flow.h
  1568. * Make-lang.in: Adjust dependencies.
  1569. 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
  1570. * decl.c (incomplete_var): Declare. Declare VECs containing them.
  1571. (incomplete_vars): Adjust comment. Change type to a VEC.
  1572. (maybe_register_incomplete_var): Adjust for new type.
  1573. (complete_vars): Adjust iteration over incomplete_vars.
  1574. 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
  1575. * decl.c (struct named_label_entry): Change type of bad_decls field
  1576. to a VEC.
  1577. (poplevel_named_label_1): Adjust for new type of bad_decls.
  1578. (check_goto): Likewise.
  1579. 2010-06-29 Jason Merrill <jason@redhat.com>
  1580. Enable implicitly declared move constructor/operator= (N3053).
  1581. * class.c (add_implicitly_declared_members): A class with no
  1582. explicitly declared copy or move constructor gets both declared
  1583. implicitly, and similarly for operator=.
  1584. (check_bases): A type with no copy ctor does not inhibit
  1585. a const copy ctor in a derived class. It does mean the derived
  1586. one is non-trivial.
  1587. (check_field_decl): Likewise.
  1588. (check_bases_and_members): A nonexistent copy ctor/op= is non-trivial.
  1589. * tree.c (type_has_nontrivial_copy_init): Adjust semantics.
  1590. (trivially_copyable_p): Likewise.
  1591. * call.c (convert_like_real): Use type_has_nontrivial_copy_init.
  1592. * class.c (finish_struct_bits): Likewise.
  1593. * tree.c (build_target_expr_with_type): Likewise.
  1594. * typeck2.c (store_init_value): Likewise.
  1595. Enable implicitly deleted functions (N2346)
  1596. * class.c (check_bases_and_members): Adjust lambda flags.
  1597. * method.c (implicitly_declare_fn): Set DECL_DELETED_FN if appropriate.
  1598. * decl2.c (mark_used): Adjust error for use of deleted function.
  1599. Machinery to support implicit delete/move.
  1600. * cp-tree.h: (struct lang_type_class): Add lazy_move_assign,
  1601. has_complex_move_ctor, has_complex_move_assign bitfields.
  1602. (CLASSTYPE_LAZY_MOVE_ASSIGN): New.
  1603. (TYPE_HAS_COMPLEX_MOVE_ASSIGN): New.
  1604. (TYPE_HAS_COMPLEX_MOVE_CTOR): New.
  1605. (enum special_function_kind): Add sfk_move_assignment.
  1606. (LOOKUP_SPECULATIVE): New.
  1607. * call.c (build_over_call): Return early if it's set.
  1608. (build_over_call): Use trivial_fn_p.
  1609. * class.c (check_bases): If the base has no default constructor,
  1610. the derived one is non-trivial. Handle move ctor/op=.
  1611. (check_field_decl): Likewise.
  1612. (check_bases_and_members): Handle move ctor/op=.
  1613. (add_implicitly_declared_members): Handle CLASSTYPE_LAZY_MOVE_ASSIGN.
  1614. (type_has_move_constructor, type_has_move_assign): New.
  1615. * decl.c (grok_special_member_properties): Handle move ctor/op=.
  1616. * method.c (type_has_trivial_fn, type_set_nontrivial_flag): New.
  1617. (trivial_fn_p): New.
  1618. (do_build_copy_constructor): Use it.
  1619. (do_build_assign_ref): Likewise. Handle move assignment.
  1620. (build_stub_type, build_stub_object, locate_fn_flags): New.
  1621. (locate_ctor): Use locate_fn_flags.
  1622. (locate_copy, locate_dtor): Remove.
  1623. (get_dtor, get_default_ctor, get_copy_ctor, get_copy_assign): New.
  1624. (process_subob_fn, synthesized_method_walk): New.
  1625. (maybe_explain_implicit_delete): New.
  1626. (implicitly_declare_fn): Use synthesized_method_walk,
  1627. type_has_trivial_fn, and type_set_nontrivial_flag.
  1628. (defaulted_late_check): Set DECL_DELETED_FN.
  1629. (defaultable_fn_check): Handle sfk_move_assignment.
  1630. (lazily_declare_fn): Clear CLASSTYPE_LAZY_* early. Don't declare
  1631. implicitly deleted move ctor/op=.
  1632. * search.c (lookup_fnfields_1): Handle sfk_move_assignment.
  1633. (lookup_fnfields_slot): New.
  1634. * semantics.c (omp_clause_info_fndecl): Remove.
  1635. (cxx_omp_create_clause_info): Use get_default_ctor, get_copy_ctor,
  1636. get_copy_assign, trivial_fn_p.
  1637. (trait_expr_value): Adjust call to locate_ctor.
  1638. * tree.c (special_function_p): Handle sfk_move_assignment.
  1639. * class.c (type_has_virtual_destructor): New.
  1640. * cp-tree.h: Declare it.
  1641. * semantics.c (trait_expr_value): Use it.
  1642. * call.c (build_over_call): Only give warnings with tf_warning.
  1643. * name-lookup.c (pop_scope): Handle NULL_TREE.
  1644. * cp-tree.h (TYPE_HAS_ASSIGN_REF): Rename to TYPE_HAS_COPY_ASSIGN.
  1645. (TYPE_HAS_CONST_ASSIGN_REF): Rename to TYPE_HAS_CONST_COPY_ASSIGN.
  1646. (TYPE_HAS_INIT_REF): Rename to TYPE_HAS_COPY_CTOR.
  1647. (TYPE_HAS_CONST_INIT_REF): Rename to TYPE_HAS_CONST_COPY_CTOR.
  1648. (TYPE_HAS_COMPLEX_ASSIGN_REF): Rename to TYPE_HAS_COMPLEX_COPY_ASSIGN.
  1649. (TYPE_HAS_COMPLEX_INIT_REF): Rename to TYPE_HAS_COMPLEX_COPY_CTOR.
  1650. (TYPE_HAS_TRIVIAL_ASSIGN_REF): Rename to TYPE_HAS_TRIVIAL_COPY_ASSIGN.
  1651. (TYPE_HAS_TRIVIAL_INIT_REF): Rename to TYPE_HAS_TRIVIAL_COPY_CTOR.
  1652. (CLASSTYPE_LAZY_ASSIGNMENT_OP): Rename to CLASSTYPE_LAZY_COPY_ASSIGN.
  1653. (sfk_assignment_operator): Rename to sfk_copy_assignment.
  1654. * decl.c, call.c, class.c, init.c, method.c, pt.c, ptree.c: Adjust.
  1655. * search.c, semantics.c, tree.c: Adjust.
  1656. * pt.c (dependent_scope_ref_p): Remove.
  1657. (value_dependent_expression_p): Don't call it.
  1658. (type_dependent_expression_p): Here either.
  1659. * init.c (build_offset_ref): Set TREE_TYPE on a qualified-id
  1660. if the scope isn't dependent.
  1661. * pt.c (convert_nontype_argument): Use mark_lvalue_use if we want
  1662. a reference.
  1663. PR c++/44587
  1664. * pt.c (has_value_dependent_address): New.
  1665. (value_dependent_expression_p): Check it.
  1666. (convert_nontype_argument): Likewise. Call decay_conversion before
  1667. folding if we want a pointer.
  1668. * semantics.c (finish_id_expression): Don't add SCOPE_REF if the
  1669. scope is the current instantiation.
  1670. 2010-06-28 Jakub Jelinek <jakub@redhat.com>
  1671. PR c++/44682
  1672. * class.c (build_base_path): If want_pointer, call mark_rvalue_use
  1673. on expr.
  1674. 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
  1675. * init.c: Do not include except.h.
  1676. * decl.c: Likewise.
  1677. * expr.c: Likewise.
  1678. * cp-lang.c: Likewise.
  1679. * pt.c: Likewise.
  1680. * semantics.c: Likewise.
  1681. * decl2.c: Likewise.
  1682. * except.c: Likewise.
  1683. (init_exception_processing): Do not set the removed
  1684. lang_protect_cleanup_actions here.
  1685. (cp_protect_cleanup_actions): Make non-static and remove prototype.
  1686. (doing_eh): New, moved from except.c but removed the do_warning flag.
  1687. (expand_start_catch_block): Update doing_eh call.
  1688. (expand_end_catch_block): Likewise.
  1689. (build_throw): Likewise.
  1690. * cp-tree.h: Prototype cp_protect_cleanup_actions.
  1691. * cp-objcp-common.h: Set LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS to
  1692. cp_protect_cleanup_actions.
  1693. * Make-lang.in: Update dependencies.
  1694. 2010-06-26 Jason Merrill <jason@redhat.com>
  1695. * call.c (add_function_candidate): Set LOOKUP_COPY_PARM for any
  1696. constructor called with a single argument that takes a reference
  1697. to the constructor's class.
  1698. (BAD_CONVERSION_RANK): New.
  1699. (compare_ics): Use it to compare bad ICSes.
  1700. 2010-06-25 Joseph Myers <joseph@codesourcery.com>
  1701. * lang-specs.h: Remove +e handling.
  1702. 2010-06-24 Andi Kleen <ak@linux.intel.com>
  1703. * parser.c: (cp_parser_question_colon_clause):
  1704. Switch to use cp_lexer_peek_token.
  1705. Call warn_for_omitted_condop. Call pedwarn for omitted
  1706. middle operand.
  1707. 2010-06-22 Jakub Jelinek <jakub@redhat.com>
  1708. PR c++/44619
  1709. * typeck2.c (build_m_component_ref): Call mark_lvalue_use on
  1710. datum and mark_rvalue_use on component.
  1711. PR c++/44627
  1712. * error.c (dump_expr): Don't look at CALL_EXPR_ARG (t, 0) if
  1713. the CALL_EXPR has no arguments.
  1714. 2010-06-21 Jason Merrill <jason@redhat.com>
  1715. * typeck.c (comp_except_specs): Fix ce_derived with noexcept.
  1716. * semantics.c (check_trait_type): Check COMPLETE_TYPE_P for array
  1717. element type.
  1718. 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
  1719. * name-lookup.c (struct arg_lookup): Convert namespaces and
  1720. classes fields to VEC.
  1721. (arg_assoc_namespace): Adjust for new type of namespaces.
  1722. (arg_assoc_class): Adjust for new type of classes.
  1723. (lookup_arg_dependent): Use make_tree_vector and
  1724. release_tree_vector.
  1725. * typeck2.c (build_x_arrow): Use vec_member.
  1726. 2010-06-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
  1727. PR c++/44486
  1728. * error.c (dump_decl): Better wording for anonymous namespace.
  1729. 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
  1730. * class.c (build_vtbl_initializer): Adjust computation of new_position
  1731. and which entry to add padding for.
  1732. 2010-06-16 Jason Merrill <jason@redhat.com>
  1733. * except.c (check_noexcept_r): Return the problematic function.
  1734. (finish_noexcept_expr): Give -Wnoexcept warning. Add complain parm.
  1735. * pt.c (tsubst_copy_and_build): Pass it.
  1736. * parser.c (cp_parser_unary_expression): Likewise.
  1737. * cp-tree.h: Adjust prototype.
  1738. * method.c (defaulted_late_check): Give the defaulted method
  1739. the same exception specification as the implicit declaration.
  1740. 2010-06-15 Jason Merrill <jason@redhat.com>
  1741. * class.c (add_implicitly_declared_members): Implicit assignment
  1742. operators can also be virtual overriders.
  1743. * method.c (lazily_declare_fn): Likewise.
  1744. * call.c (convert_like_real): Give "initializing argument of"
  1745. information for ambiguous conversion. Give source position
  1746. of function.
  1747. * call.c (print_z_candidates): Do print viable deleted candidates.
  1748. (joust): Don't choose a deleted function just because its worst
  1749. conversion is better than another candidate's worst.
  1750. * call.c (convert_like_real): Don't complain about
  1751. list-value-initialization from an explicit constructor.
  1752. * decl.c (duplicate_decls): Use DECL_IS_BUILTIN rather than test
  1753. DECL_SOURCE_LOCATION directly.
  1754. * class.c (type_has_user_provided_default_constructor): Use
  1755. sufficient_parms_p.
  1756. * call.c (is_subseq): Handle ck_aggr, ck_list.
  1757. (compare_ics): Treat an aggregate or ambiguous conversion to the
  1758. same type as involving the same function.
  1759. 2010-06-13 Shujing Zhao <pearly.zhao@oracle.com>
  1760. * typeck.c (convert_for_assignment): Fix comment. Change message
  1761. format from %d to %qP.
  1762. (convert_for_initialization): Fix comment.
  1763. 2010-06-11 Shujing Zhao <pearly.zhao@oracle.com>
  1764. * cp-tree.h (expr_list_kind): New type.
  1765. (impl_conv_rhs): New type.
  1766. (build_x_compound_expr_from_list, convert_for_initialization): Adjust
  1767. prototype.
  1768. (typeck.c (convert_arguments): Use impl_conv_rhs and emit the
  1769. diagnostics for easy translation. Change caller.
  1770. (convert_for_initialization): Use impl_conv_rhs and change caller.
  1771. (build_x_compound_expr_from_list): Use expr_list_kind and emit the
  1772. diagnostics for easy translation. Change caller.
  1773. * decl.c (bad_spec_place): New enum.
  1774. (bad_specifiers): Use it and emit the diagnostics for easy
  1775. translation. Change caller.
  1776. * pt.c (coerce_template_parms): Put the diagnostics in full sentence.
  1777. 2010-06-09 Nathan Froyd <froydnj@codesourcery.com>
  1778. * cp-tree.h (struct saved_scope): Change decl_ns_list field type
  1779. to a VEC.
  1780. * decl2.c (cp_write_global_declarations): Adjust for new type of
  1781. decl_namespace_list.
  1782. * name-lookup.c (current_decl_namespace): Likewise.
  1783. (push_decl_namespace): Likewise.
  1784. (pop_decl_namespace): Likewise.
  1785. 2010-06-09 Nathan Froyd <froydnj@codesourcery.com>
  1786. * call.c (build_java_interface_fn_ref): Call build_function_type_list
  1787. instead of build_function_type.
  1788. * decl.c (cxx_init_decl_processing): Likewise.
  1789. (declare_global_var): Likewise.
  1790. (get_atexit_node): Likewise.
  1791. (expand_static_init): Likewise.
  1792. * decl2.c (start_objects): Likewise.
  1793. (start_static_storage_duration_function): Likewise.
  1794. * except.c (init_exception_processing): Likewise.
  1795. (build_exc_ptr): Likewise.
  1796. (build_throw): Likewise.
  1797. * rtti.c (throw_bad_cast): Likewise.
  1798. (throw_bad_typeid): Likewise.
  1799. (build_dynamic_cast_1): Likewise.
  1800. 2010-06-09 Nathan Froyd <froydnj@codesourcery.com>
  1801. * call.c (build_call_n): Call XALLOCAVEC instead of alloca.
  1802. (build_op_delete_call): Likewise.
  1803. (build_over_call): Likewise.
  1804. * cp-gimplify.c (cxx_omp_clause_apply_fn): Likewise.
  1805. * pt.c (process_partial_specialization): Likewise.
  1806. (tsubst_template_args): Likewise.
  1807. * semantics.c (finish_asm_stmt): Likewise.
  1808. 2010-06-08 Nathan Sidwell <nathan@codesourcery.com>
  1809. * decl.c (record_key_method_defined): New, broken out of ...
  1810. (finish_function): ... here. Call it.
  1811. (start_decl): Treat aliases as definitions.
  1812. 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
  1813. * typeck2.c (abstract_virtuals_error): Use typed GC allocation.
  1814. * pt.c (maybe_process_partial_specialization): Likewise.
  1815. (register_specialization): Likewise.
  1816. (add_pending_template): Likewise.
  1817. (lookup_template_class): Likewise.
  1818. (push_tinst_level): Likewise.
  1819. * parser.c (cp_lexer_new_main): Likewise.
  1820. (cp_lexer_new_from_tokens): Likewise.
  1821. (cp_token_cache_new): Likewise.
  1822. (cp_parser_context_new): Likewise.
  1823. (cp_parser_new): Likewise.
  1824. (cp_parser_nested_name_specifier_opt): Likewise.
  1825. (cp_parser_template_id): Likewise.
  1826. * name-lookup.c (binding_entry_make): Likewise.
  1827. (binding_table_construct): Likewise.
  1828. (binding_table_new): Likewise.
  1829. (cxx_binding_make): Likewise.
  1830. (pushdecl_maybe_friend): Likewise.
  1831. (begin_scope): Likewise.
  1832. (push_to_top_level): Likewise.
  1833. * lex.c (init_reswords): Likewise.
  1834. (retrofit_lang_decl): Likewise.
  1835. (cxx_dup_lang_specific_decl): Likewise.
  1836. (copy_lang_type): Likewise.
  1837. (cxx_make_type): Likewise.
  1838. * decl.c (make_label_decl): Likewise.
  1839. (check_goto): Likewise.
  1840. (start_preparsed_function): Likewise.
  1841. (save_function_data): Likewise.
  1842. * cp-tree.h (TYPE_SET_PTRMEMFUNC_TYPE): Likewise.
  1843. * cp-objcp-common.c (decl_shadowed_for_var_insert): Likewise.
  1844. * class.c (finish_struct_1): Likewise.
  1845. * cp-tree.h (struct lang_type): Add variable_size GTY option.
  1846. (struct lang_decl): Likewise.
  1847. * parser.c (cp_parser_new): Update comment to not reference
  1848. ggc_alloc.
  1849. 2010-06-07 Jason Merrill <jason@redhat.com>
  1850. PR c++/44366
  1851. * error.c (dump_parameters): Mask out TFF_SCOPE.
  1852. (dump_simple_decl): Don't print the scope of a PARM_DECL.
  1853. (dump_scope): Remove no-op mask.
  1854. PR c++/44401
  1855. * parser.c (cp_parser_lookup_name): Fix naming the constructor.
  1856. * cp-tree.h (COMPLETE_OR_OPEN_TYPE_P): New macro.
  1857. * init.c (build_offset_ref): Use it.
  1858. * pt.c (maybe_process_partial_specialization): Use it.
  1859. (instantiate_class_template): Use it.
  1860. * search.c (lookup_base): Use it.
  1861. 2010-06-07 Jakub Jelinek <jakub@redhat.com>
  1862. PR c++/44444
  1863. * expr.c (mark_exp_read): Handle INDIRECT_REF.
  1864. * cvt.c (convert_to_void): Handle INDIRECT_REF like
  1865. handled_component_p.
  1866. PR c++/44443
  1867. * decl.c (initialize_local_var): If TREE_USED is set on the type,
  1868. set also DECL_READ_P on the decl.
  1869. 2010-05-25 Dodji Seketeli <dodji@redhat.com>
  1870. PR c++/44188
  1871. * cp-tree.h (typedef_variant_p): Move this declaration to
  1872. gcc/tree.h.
  1873. * tree.c (typedef_variant_p): Move this definition to gcc/tree.c.
  1874. * decl.c (grokdeclarator): Do not rename debug info of an
  1875. anonymous tagged type named by a typedef.
  1876. 2010-06-05 Fabien Chêne <fabien@gcc.gnu.org>
  1877. PR c++/44086
  1878. * class.c (check_field_decls): Move the call to
  1879. check_bitfield_decl before trying to set the
  1880. CLASSTYPE_READONLY_FIELDS_NEED_INIT flag.
  1881. 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
  1882. * typeck.c: Update include path for moved files.
  1883. * decl.c: Likewise.
  1884. * rtti.c: Likewise.
  1885. * cp-gimplify.c: Likewise.
  1886. * cp-lang.c: Likewise.
  1887. * pt.c: Likewise.
  1888. * semantics.c: Likewise.
  1889. * cxx-pretty-print.h: Likewise.
  1890. * decl2.c: Likewise.
  1891. * parser.c: Likewise.
  1892. * cp-objcp-common.c: Likewise.
  1893. * cp-tree.h: Likewise.
  1894. * name-lookup.c: Likewise.
  1895. * lex.c: Likewise.
  1896. * name-lookup.h: Likewise.
  1897. * config-lang.in: Update paths in gtfiles for files in c-family/.
  1898. * Make-lang.in: Likewise.
  1899. 2010-06-04 Magnus Fromreide <magfr@lysator.liu.se>
  1900. * cvt.c (cp_convert_to_pointer): Use null_ptr_cst_p.
  1901. * typeck.c (build_ptrmemfunc): Likewise.
  1902. 2010-06-04 Jason Merrill <jason@redhat.com>
  1903. * typeck2.c (merge_exception_specifiers): Adjust merging of
  1904. throw() and noexcept(true).
  1905. * pt.c (value_dependent_expression_p) [NOEXCEPT_EXPR]: Avoid
  1906. using an uninitialized variable.
  1907. * cxx-pretty-print.c (pp_cxx_unary_expression): Handle NOEXCEPT_EXPR.
  1908. (pp_cxx_expression): Likewise.
  1909. Implement noexcept-specification (15.4)
  1910. * parser.c (cp_parser_exception_specification_opt): Parse it.
  1911. Give -Wdeprecated warning about throw() specs.
  1912. * pt.c (tsubst_exception_specification): Handle it.
  1913. * error.c (dump_exception_spec): Handle it.
  1914. (dump_expr): Handle NOEXCEPT_EXPR.
  1915. * cxx-pretty-print.c (pp_cxx_exception_specification): Likewise.
  1916. * typeck.c (comp_except_specs): Handle compatibility rules.
  1917. Change exact parm to take an enum.
  1918. * typeck2.c (merge_exception_specifiers): Handle noexcept.
  1919. * except.c (nothrow_spec_p, type_noexcept_p): New fns.
  1920. (type_throw_all_p, build_noexcept_spec): New fns.
  1921. * cp-tree.h (TYPE_NOTHROW_P, TYPE_NOEXCEPT_P): Use them.
  1922. (comp_except_specs): Define ce_derived, ce_normal, ce_exact enums.
  1923. (cp_tree_index): Add CPTI_NOEXCEPT_TRUE_SPEC, CPTI_NOEXCEPT_FALSE_SPEC.
  1924. (noexcept_true_spec, noexcept_false_spec): New macros.
  1925. * name-lookup.c (pushdecl_maybe_friend): Adjust.
  1926. * search.c (check_final_overrider): Adjust.
  1927. * decl.c (check_redeclaration_exception_specification): Adjust.
  1928. (use_eh_spec_block): Use type_throw_all_p.
  1929. (cxx_init_decl_processing): Set noexcept_false_spec,noexcept_true_spec.
  1930. Give operator new a noexcept-specification in C++0x mode.
  1931. * tree.c (build_exception_variant, cxx_type_hash_eq): Adjust.
  1932. (cp_build_type_attribute_variant): Don't test TYPE_RAISES_EXCEPTIONS.
  1933. Implement noexcept operator (5.3.7)
  1934. * cp-tree.def (NOEXCEPT_EXPR): New.
  1935. * except.c (check_noexcept_r, finish_noexcept_expr): New.
  1936. * cp-tree.h: Declare finish_noexcept_expr.
  1937. * parser.c (cp_parser_unary_expression): Parse noexcept-expression.
  1938. * pt.c (tsubst_copy_and_build): And tsubst it.
  1939. (type_dependent_expression_p): Handle it.
  1940. (value_dependent_expression_p): Handle it.
  1941. * call.c (build_conditional_expr): Never fold in unevaluated context.
  1942. * tree.c (build_aggr_init_expr): Propagate TREE_NOTHROW.
  1943. * semantics.c (simplify_aggr_init_expr): Likewise.
  1944. * typeck.c (merge_types): Call merge_exception_specifiers.
  1945. * decl.c (duplicate_decls): Check DECL_SOURCE_LOCATION rather than
  1946. DECL_ANTICIPATED for preferring new type.
  1947. 2010-06-04 Joseph Myers <joseph@codesourcery.com>
  1948. * g++spec.c (lang_specific_driver): Use GCC-specific formats in
  1949. diagnostics.
  1950. 2010-06-04 Jakub Jelinek <jakub@redhat.com>
  1951. PR c++/44412
  1952. * typeck.c (build_class_member_access_expr): Call mark_exp_read
  1953. on object for static data members.
  1954. 2010-06-04 Jakub Jelinek <jakub@redhat.com>
  1955. Jason Merrill <jason@redhat.com>
  1956. PR c++/44362
  1957. * call.c (build_conditional_expr): If both arg2 and arg3 are lvalues
  1958. with the same type, call mark_lvalue_use on both.
  1959. 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
  1960. * class.c (struct vtbl_init_data_s): Remove last_init field.
  1961. (struct secondary_vptr_vtt_init_data_s): Change type of inits field
  1962. to a VEC.
  1963. (finish_vtbls): Use a VEC rather than a TREE_LIST for the accumulated
  1964. initializers.
  1965. (build_vtt): Likewise.
  1966. (initialize_vtable): Take a VEC instead of a tree.
  1967. (build_vtt_inits): Change return type to void. Take a VEC **
  1968. instead of a tree *; accumulate results into said VEC.
  1969. (build_ctor_vtbl_group): Use a VEC rather than a TREE_LIST for the
  1970. accumulated initializers. Pass the vtable to accumulate_vtbl_inits.
  1971. (accumulate_vtbl_inits): Add extra vtable tree parameter; take a VEC
  1972. instead of a tree.
  1973. (dfs_accumulate_vtbl_inits): Likewise. Change return type to void.
  1974. (build_vtbl_initializer): Add VEC parameter; accumulate initializers
  1975. into it.
  1976. (dfs_build_secondary_vptr_vtt_inits): Use CONSTRUCTOR_APPEND_ELT
  1977. rather than tree_cons.
  1978. (build_vbase_offset_vtbl_entries): Likewise.
  1979. (add_vcall_offset): Likewise.
  1980. (build_rtti_vtbl_entries): Likewise.
  1981. * cp-tree.h (initialize_artificial_var): Take a VEC instead of a tree.
  1982. * decl.c (initialize_artificial_var): Use build_constructor instead
  1983. of build_constructor_from_list.
  1984. 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
  1985. PR c++/44294
  1986. * class.c (layout_class_type): Check MAX_FIXED_MODE_SIZE on
  1987. bit-field.
  1988. 2010-06-02 Jonathan Wakely <jwakely.gcc@gmail.com>
  1989. * parser.c (cp_parser_mem_initializer_list): Change error text.
  1990. 2010-06-02 Jakub Jelinek <jakub@redhat.com>
  1991. * cp-objcp-common.c (shadowed_var_for_decl): Change into
  1992. tree_decl_map hashtab from tree_map.
  1993. (decl_shadowed_for_var_lookup, decl_shadowed_for_var_insert): Adjust.
  1994. (init_shadowed_var_for_decl): Adjust initialization.
  1995. PR c++/44361
  1996. * cvt.c (convert_to_void): If implicit is NULL, call mark_rvalue_use
  1997. instead of calling mark_exp_read only when not an assignment.
  1998. PR debug/44367
  1999. * semantics.c (finalize_nrv): Don't copy DECL_ARTIFICIAL, DECL_IGNORED_P,
  2000. DECL_SOURCE_LOCATION and DECL_ABSTRACT_ORIGIN from var to result.
  2001. Set DECL_VALUE_EXPR on var.
  2002. 2010-06-02 Jason Merrill <jason@redhat.com>
  2003. * error.c (dump_type): Improve typedef handling.
  2004. PR c++/9726
  2005. PR c++/23594
  2006. PR c++/44333
  2007. * name-lookup.c (same_entity_p): New.
  2008. (ambiguous_decl): Multiple declarations of the same entity
  2009. are not ambiguous.
  2010. 2010-06-01 Jason Merrill <jason@redhat.com>
  2011. DR 990
  2012. * call.c (add_list_candidates): Prefer the default constructor.
  2013. (build_aggr_conv): Treat missing initializers like { }.
  2014. * typeck2.c (process_init_constructor_record): Likewise.
  2015. * init.c (expand_default_init): Use digest_init for
  2016. direct aggregate initialization, too.
  2017. * call.c (add_list_candidates): Split out...
  2018. (build_user_type_conversion_1): ...from here.
  2019. (build_new_method_call): And here.
  2020. (implicit_conversion): Propagate LOOKUP_NO_NARROWING.
  2021. PR c++/44358
  2022. * call.c (build_list_conv): Set list-initialization flags properly.
  2023. 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
  2024. * typeck2.c (build_x_arrow): Make types_memoized a VEC.
  2025. 2010-06-01 Arnaud Charlet <charlet@adacore.com>
  2026. Matthew Gingell <gingell@adacore.com>
  2027. * Make-lang.in (CXX_C_OBJS): Add c-ada-spec.o.
  2028. * decl2.c: Include langhooks.h and c-ada-spec.h.
  2029. (cpp_check, collect_source_refs, collect_ada_namespace,
  2030. collect_all_refs): New functions.
  2031. (cp_write_global_declarations): Add handling of -fdump-ada-spec.
  2032. * lang-specs.h: Ditto.
  2033. 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
  2034. * cp-tree.h (cp_build_function_call_nary): Declare.
  2035. * typeck.c (cp_build_function_call_nary): Define.
  2036. * decl.c (register_dtor_fn): Use it instead of
  2037. cp_build_function_call.
  2038. (cxx_maybe_build_cleanup): Likewise.
  2039. * decl2.c (generate_ctor_or_dtor_function): Likewise.
  2040. * except.c (do_get_exception_ptr): Likewise.
  2041. (do_begin_catch): Likewise.
  2042. (do_allocate_exception): Likewise.
  2043. (do_free_exception): Likewise.
  2044. (build_throw): Likewise. Use cp_build_function_call_vec instead
  2045. of cp_build_function_call.
  2046. (do_end_catch): Likewise.
  2047. 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
  2048. * cp-tree.h (struct cp_decl_specifier_seq): Move type_location field up.
  2049. (struct cp_declarator): Move id_loc field up.
  2050. 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
  2051. * cp-tree.h (ATTRIBUTE_GCC_CXXDIAG): Remove. Require that
  2052. this file is included before c-common.h. Define GCC_DIAG_STYLE
  2053. before including diagnostic-core.h and toplev.h.
  2054. (pedwarn_cxx98): Use ATTRIBUTE_GCC_DIAG.
  2055. * pt.c: Include cp-tree.h before c-common.h.
  2056. 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
  2057. * tree.c (c_register_addr_space): Add stub.
  2058. 2010-05-28 Joseph Myers <joseph@codesourcery.com>
  2059. * g++spec.c (lang_specific_driver): Use fatal_error instead of
  2060. fatal.
  2061. 2010-05-28 Dodji Seketeli <dodji@redhat.com>
  2062. Revert fix of PR c++/44188
  2063. * cp-tree.h (typedef_variant_p): Revert moving this declaration to
  2064. gcc/tree.h.
  2065. * tree.c (typedef_variant_p): Revert moving this definition to
  2066. gcc/tree.c.
  2067. * decl.c (grokdeclarator): Revert naming typedef handling.
  2068. 2010-05-27 Joseph Myers <joseph@codesourcery.com>
  2069. * call.c: Include diagnostic-core.h instead of diagnostic.h.
  2070. * cp-lang.c: Don't include diagnostic.h
  2071. * name-lookup.c: Include diagnostic-core.h instead of
  2072. diagnostic.h.
  2073. (cp_emit_debug_info_for_using): Use seen_error.
  2074. * optimize.c: Include diagnostic-core.h instead of diagnostic.h.
  2075. * parser.c: Include diagnostic-core.h instead of diagnostic.h.
  2076. * pt.c (iterative_hash_template_arg): Use seen_error.
  2077. * repo.c: Include diagnostic-core.h instead of diagnostic.h.
  2078. * typeck2.c: Include diagnostic-core.h instead of diagnostic.h.
  2079. * Make-lang.in (cp/cp-lang.o, cp/typeck2.o, cp/call.o, cp/repo.o,
  2080. cp/optimize.o, cp/parser.o, cp/name-lookup.o): Update
  2081. dependencies.
  2082. 2010-05-25 Dodji Seketeli <dodji@redhat.com>
  2083. PR c++/44188
  2084. * cp-tree.h (typedef_variant_p): Move this declaration to
  2085. gcc/tree.h.
  2086. * tree.c (typedef_variant_p): Move this definition to gcc/tree.c.
  2087. * decl.c (grokdeclarator): Do not rename debug info of an
  2088. anonymous tagged type named by a typedef.
  2089. 2010-05-27 Jason Merrill <jason@redhat.com>
  2090. PR c++/43555
  2091. * decl.c (grokdeclarator) [cdk_pointer et al]: Force evaluation of
  2092. anonymous VLA size.
  2093. 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
  2094. PR bootstrap/44287
  2095. * rtti.c (emit_support_tinfos): Check for NULL_TREE.
  2096. * class.c (layout_class_type): Likewise.
  2097. * decl.c (finish_enum): Likewise.
  2098. * mangle.c (write_builitin_type): Likewise.
  2099. 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
  2100. * cp-tree.h (cp_decl_specifier_seq): Add new bifield
  2101. explicit_int128_p.
  2102. * decl.c (grokdeclarator): Handle __int128.
  2103. * parser.c (cp_lexer_next_token_is_decl_specifier_ke): Likewise.
  2104. (cp_parser_simple_type_specifier): Likewise.
  2105. * rtti.c (emit_support_tinfos): Add int128 nodes for rtti.
  2106. * typeck.c (cp_common_type): Handle __int128.
  2107. * mangle.c (integer_type_codes): Add itk_int128 and
  2108. itk_unsigned_int128.
  2109. 2010-05-26 Jason Merrill <jason@redhat.com>
  2110. PR c++/43382
  2111. * pt.c (tsubst_pack_expansion): Don't get confused by recursive
  2112. unification.
  2113. 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
  2114. * cp-lang.c: Do not include expr.h.
  2115. 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
  2116. * decl.c: Do not include rtl.h
  2117. * semantics.c: Likewise.
  2118. 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
  2119. * cp-tree.h: Do not include splay-tree.h.
  2120. (struct prtmem_cst): Remove unused field and false comment.
  2121. * typeck.c: Do not include rtl.h, expr.h, and tm_p.h.
  2122. * optimize.c: Do not inclde rtl.h, insn-config.h, and integrate.h.
  2123. * init.c: Do not include rtl.h and expr.h.
  2124. * class.c: Do not include rtl.h. Include splay-tree.h.
  2125. (build_clone): Use plain NULL instead of NULL_RTX.
  2126. * decl.c: Do not include expr.h. Explain why rtl.h has to be
  2127. included. Include splay-tree.h.
  2128. * method.c: Do not include rtl.h and expr.h.
  2129. (use_thunk): Use plain NULL instead of NULL_RTX.
  2130. * except.c: Do not include rtl.h, expr.h, and libfuncs.h.
  2131. * tree.c: Do not include rtl.h, insn-config.h, integrate.h,
  2132. and target.h. Include splay-tree.h.
  2133. * expr.c: Do not include rtl.h and expr.h.
  2134. * pt.c: Do not include obstack.h and rtl.h.
  2135. (tsubst_friend_function): Use plain NULL instead of NULL_RTX.
  2136. (tsubst_decl): Likewise.
  2137. (instantiate_decl): Likewise.
  2138. * semantics.c: Do not include exprt.h and debug.h. Explain why
  2139. rtl.h has to be included.
  2140. * decl2.c: Do not include rtl.h and expr.h. Include splay-tree.h.
  2141. * call.c: Do not include rtl.h and expr.h.
  2142. * search.c: Do not include obstack.h and rtl.h.
  2143. * friend.c: Do not include rtl.h and expr.h.
  2144. * Make-lang.in: Update dependencies.
  2145. 2010-05-25 Jakub Jelinek <jakub@redhat.com>
  2146. PR c++/18249
  2147. * parser.c (non_integral_constant): Add NIC_NONE.
  2148. (required_token): Add RT_NONE.
  2149. (cp_parser_unary_expression): Initialize non_constant_p
  2150. to NIC_NONE.
  2151. (cp_parser_asm_definition): Initialize missing to RT_NONE.
  2152. (cp_parser_primary_expression, cp_parser_postfix_expression,
  2153. cp_parser_cast_expression, cp_parser_binary_expression,
  2154. cp_parser_functional_cast): Fix formatting.
  2155. 2010-05-25 Shujing Zhao <pearly.zhao@oracle.com>
  2156. PR c++/18249
  2157. * parser.c: Remove inclusion of dyn-string.h.
  2158. (non_integral_constant): New enum.
  2159. (name_lookup_error): New enum.
  2160. (required_token): New enum.
  2161. (cp_parser_required_error): New function.
  2162. (cp_parser_require): Change the type of variable token_desc to
  2163. required_token and use cp_parser_required_error.
  2164. (cp_parser_require_keyword): Likewise.
  2165. (cp_parser_error): Use gmsgid as parameter.
  2166. (cp_parser_name_lookup_error): Change the type of variable desired to
  2167. name_lookup_error and put the diagnostic in the full sentences. Change
  2168. caller.
  2169. (cp_parser_non_integral_constant_expression): Change the type of the
  2170. variable thing to non_integral_constant and put the diagnostics in
  2171. full sentences. Change caller.
  2172. 2010-05-24 Eric Botcazou <ebotcazou@adacore.com>
  2173. PR middle-end/44100
  2174. * typeck.c (cp_build_unary_op): Fold offsetof-like computations.
  2175. 2010-05-24 Joseph Myers <joseph@codesourcery.com>
  2176. * error.c (cp_diagnostic_starter): Update call to
  2177. diagnostic_build_prefix.
  2178. (cp_print_error_function,
  2179. print_instantiation_partial_context_line): Check show_column flag
  2180. in context.
  2181. 2010-05-24 Jason Merrill <jason@redhat.com>
  2182. PR c++/41510
  2183. * decl.c (check_initializer): Don't wrap an init-list in a
  2184. TREE_LIST.
  2185. * init.c (build_aggr_init): Don't assume copy-initialization if
  2186. init has CONSTRUCTOR_IS_DIRECT_INIT.
  2187. * call.c (build_new_method_call): Sanity check.
  2188. 2010-05-24 Nathan Froyd <froydnj@codesourcery.com>
  2189. * rtti.c (tinfo_base_init): Use build_constructor instead of
  2190. build_constructor_from_list. Don't cons a tree node for
  2191. returning.
  2192. (generic_initializer): Use build_constructor_single instead of
  2193. build_constructor_from_list.
  2194. (ptr_initializer): Use build_constructor instead of
  2195. build_constructor_from_list
  2196. (ptm_initializer): Likewise.
  2197. (class_initializer): Likewise. Take varargs instead of TRAIL.
  2198. (get_pseudo_ti_init): Adjust calls to class_initializer. Use
  2199. build_constructor instead of build_constructor_from_list.
  2200. 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
  2201. * semantics.c: Include bitmap.h.
  2202. * Make-lang.in: Update dependencies.
  2203. 2010-05-22 Jan Hubicka <jh@suse.cz>
  2204. * decl2.c (maybe_emit_vtables): Produce same comdat group when outputting
  2205. comdat vtables.
  2206. (cxx_callgraph_analyze_expr): Remove code marking vtables needed.
  2207. 2010-05-21 Joseph Myers <joseph@codesourcery.com>
  2208. * cxx-pretty-print.c: Correct merge error.
  2209. 2010-05-21 Joseph Myers <joseph@codesourcery.com>
  2210. * error.c: Include tree-diagnostic.h and tree-pretty-print.h.
  2211. (cp_print_error_function): Use diagnostic_abstract_origin macro.
  2212. (cp_printer): Handle %K here using percent_K_format.
  2213. * cxx-pretty-print.c: Include tree-pretty-print.h.
  2214. * Make-lang.in (cp/error.o, cp/cxx-pretty-print.o): Update
  2215. dependencies.
  2216. 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
  2217. * error.c, tree.c, typeck2.c, cxx-pretty-print.c, mangle.c:
  2218. Clean up redundant includes.
  2219. 2010-05-20 Paolo Carlini <paolo.carlini@oracle.com>
  2220. PR c++/30298
  2221. * decl.c (xref_basetypes): Return false in case of ill-formed
  2222. redefinition.
  2223. 2010-05-19 Jason Merrill <jason@redhat.com>
  2224. * call.c (reference_binding): Use cp_build_qualified_type_real
  2225. and cp_type_quals consistently.
  2226. (add_function_candidate): Likewise.
  2227. (build_conditional_expr): Likewise.
  2228. (convert_like_real): Likewise.
  2229. (type_passed_as): Likewise.
  2230. * class.c (add_method): Likewise.
  2231. (same_signature_p): Likewise.
  2232. (layout_class_type): Likewise.
  2233. * decl.c (cxx_init_decl_processing): Likewise.
  2234. (cp_fname_init): Likewise.
  2235. (grokdeclarator): Likewise.
  2236. * decl2.c (cp_reconstruct_complex_type): Likewise.
  2237. * init.c (build_new_1): Likewise.
  2238. * method.c (do_build_copy_constructor): Likewise.
  2239. (implicitly_declare_fn): Likewise.
  2240. * pt.c (tsubst_aggr_type): Likewise.
  2241. (tsubst): Likewise.
  2242. * rtti.c (init_rtti_processing): Likewise.
  2243. (build_headof): Likewise.
  2244. (build_dynamic_cast_1): Likewise.
  2245. (tinfo_base_init): Likewise.
  2246. (emit_support_tinfos): Likewise.
  2247. * semantics.c (capture_decltype): Likewise.
  2248. * tree.c (cv_unqualified): Likewise.
  2249. * typeck.c (composite_pointer_type): Likewise.
  2250. (string_conv_p): Likewise.
  2251. * mangle.c (write_CV_qualifiers_for_type): Tweak.
  2252. * call.c (initialize_reference): Use CP_TYPE_CONST_P.
  2253. * decl.c (start_decl): Likewise.
  2254. * semantics.c (finish_compound_literal): Likewise.
  2255. * typeck.c (check_return_expr): Use CP_TYPE_VOLATILE_P.
  2256. (cp_type_readonly): Remove.
  2257. * cp-tree.h: Remove declaration.
  2258. * typeck.c (merge_types): Preserve memfn quals.
  2259. * decl.c (grokdeclarator): Don't check quals on fn type.
  2260. * typeck.c (cp_apply_type_quals_to_decl): Likewise.
  2261. * tree.c (cp_build_qualified_type_real): Simplify qualifier checking.
  2262. PR c++/44193
  2263. * typeck.c (type_memfn_quals): New fn.
  2264. (apply_memfn_quals): New fn.
  2265. (cp_type_quals): Return TYPE_UNQUALIFIED for FUNCTION_TYPE.
  2266. (cp_type_readonly): Use cp_type_quals.
  2267. * cp-tree.h: Add declarations.
  2268. * tree.c (cp_build_qualified_type_real): Don't set, but do
  2269. preserve, quals on FUNCTION_TYPE.
  2270. (strip_typedefs): Use apply_memfn_quals and type_memfn_quals.
  2271. * decl.c (build_ptrmem_type): Likewise.
  2272. (grokdeclarator): Likewise.
  2273. (static_fn_type): Likewise.
  2274. * decl2.c (change_return_type): Likewise.
  2275. (cp_reconstruct_complex_type): Likewise.
  2276. * pt.c (tsubst_function_type): Likewise.
  2277. (unify): Likewise.
  2278. (tsubst): Likewise. Drop special FUNCTION_TYPE substitution code.
  2279. 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
  2280. * tree.c (build_min_non_dep_call_vec): Update comment.
  2281. 2010-05-17 Jason Merrill <jason@redhat.com>
  2282. * call.c (struct z_candidate): Add explicit_targs field.
  2283. (add_template_candidate_real): Set it.
  2284. (build_over_call): Use it to control init-list warning.
  2285. PR c++/44157
  2286. * call.c (build_over_call): Limit init-list deduction warning to
  2287. cases where the argument is actually an init-list.
  2288. PR c++/44158
  2289. * call.c (build_over_call): Don't do bitwise copy for move ctor.
  2290. 2010-05-17 Dodji Seketeli <dodji@redhat.com>
  2291. Jason Merrill <jason@redhat.com>
  2292. PR c++/44108
  2293. * decl.c (compute_array_index_type): Call mark_rvalue_use.
  2294. 2010-05-15 Jason Merrill <jason@redhat.com>
  2295. * cp-tree.h (TYPE_NOEXCEPT_P): New macro.
  2296. * except.c (begin_eh_spec_block): Use MUST_NOT_THROW_EXPR if
  2297. TYPE_NOEXCEPT_P.
  2298. (finish_eh_spec_block): Adjust.
  2299. 2010-05-15 Jakub Jelinek <jakub@redhat.com>
  2300. PR c++/44148
  2301. * pt.c (tsubst): Unshare template argument.
  2302. 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
  2303. * decl.c: Include tree-iterator.h, as fixup for tree-inline.h changes.
  2304. * Make-lang.in: Fix dependencies accordingly.
  2305. 2010-05-14 Jason Merrill <jason@redhat.com>
  2306. C++ DR 475
  2307. * except.c (build_throw): Simplify, adjust for DR 475.
  2308. PR c++/44127
  2309. * except.c (dtor_nothrow): Return nonzero for type with
  2310. trivial destructor.
  2311. PR c++/44127
  2312. * cp-gimplify.c (gimplify_must_not_throw_expr): Use
  2313. gimple_build_eh_must_not_throw.
  2314. 2010-05-14 Martin Jambor <mjambor@suse.cz>
  2315. * cp-lang.c (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove both its undef
  2316. and define.
  2317. 2010-05-14 Jonathan Wakely <jwakely.gcc@gmail.com>
  2318. * call.c (build_new_method_call): Change warning text.
  2319. * typeck2.c (build_functional_cast): Change error text.
  2320. 2010-05-14 Shujing Zhao <pearly.zhao@oracle.com>
  2321. PR c++/30566
  2322. * name-lookup.c (pushdecl_maybe_friend): Avoid the warnings about
  2323. shadowing the outer parameter or variables by the declaration of
  2324. nested function in nested structure or class. Warn the shadowing by
  2325. the declaration of nested lambda expression.
  2326. 2010-05-13 Jason Merrill <jason@redhat.com>
  2327. * typeck.c (cp_build_array_ref): Factor out from...
  2328. (build_array_ref): ...here. Drop complain parm.
  2329. (build_new_op): Adjust.
  2330. * class.c (build_vtbl_ref_1): Adjust.
  2331. * decl2.c (grok_array_decl): Adjust.
  2332. * cp-tree.h: Adjust prototypes.
  2333. 2010-05-13 Jan Hubicka <jh@suse.cz>
  2334. * decl.c (cp_finish_decl): Do not worry about used attribute.
  2335. 2010-05-12 Jason Merrill <jason@redhat.com>
  2336. * typeck.c (build_array_ref): Take complain parm.
  2337. * cp-tree.h: Add it to prototype.
  2338. * call.c (build_new_op): Pass it.
  2339. * class.c (build_vtbl_ref): Pass it.
  2340. * decl2.c (grok_array_decl): Pass it.
  2341. PR bootstrap/44048
  2342. PR target/44099
  2343. * cp-tree.def (NULLPTR_TYPE): Remove.
  2344. * cp-tree.h (NULLPTR_TYPE_P): New.
  2345. (SCALAR_TYPE_P): Use it.
  2346. (nullptr_type_node): New.
  2347. (cp_tree_index): Add CPTI_NULLPTR_TYPE.
  2348. * decl.c (cxx_init_decl_processing): Call record_builtin_type on
  2349. nullptr_type_node.
  2350. * cvt.c (ocp_convert): Use NULLPTR_TYPE_P instead of NULLPTR_TYPE.
  2351. * cxx-pretty-print.c (pp_cxx_constant): Likewise.
  2352. * error.c (dump_type, dump_type_prefix, dump_type_suffix): Likewise.
  2353. * mangle.c (write_type): Likewise.
  2354. * name-lookup.c (arg_assoc_type): Likewise.
  2355. * typeck.c (build_reinterpret_cast_1): Likewise.
  2356. * rtti.c (typeinfo_in_lib_p): Likewise.
  2357. (emit_support_tinfos): Remove local nullptr_type_node.
  2358. * cp-tree.h (UNKNOWN_TYPE): Remove.
  2359. * decl.c (cxx_init_decl_processing): Use LANG_TYPE instead.
  2360. * error.c (dumy_type, dump_type_prefix, dump_type_suffix): Likewise.
  2361. * typeck2.c (cxx_incomplete_type_diagnostic): Likewise.
  2362. * class.c (instantiate_type): Check unknown_type_node rather than
  2363. UNKNOWN_TYPE.
  2364. * name-lookup.c (maybe_push_decl): Likewise.
  2365. * rtti.c (get_tinfo_decl_dynamic): Likewise.
  2366. (get_typeid): Likewise.
  2367. * semantics.c (finish_offsetof): Likewise.
  2368. PR c++/20669
  2369. * call.c (add_template_candidate_real): If deduction fails, still
  2370. add the template as a non-viable candidate.
  2371. (equal_functions): Handle template candidates.
  2372. (print_z_candidate): Likewise.
  2373. (print_z_candidates): Likewise.
  2374. (build_new_function_call): Likewise.
  2375. * cp-tree.h (LOOKUP_LIST_ONLY): New.
  2376. * call.c (add_candidates): Enforce it.
  2377. (build_new_method_call): Try non-list ctor if no viable list ctor.
  2378. (build_user_type_conversion_1): Likewise.
  2379. * call.c (add_candidates): Distinguish between type(x) and
  2380. x.operator type().
  2381. (convert_class_to_reference): Set LOOKUP_NO_CONVERSION.
  2382. (build_new_method_call): Give better error for conversion op.
  2383. * call.c (add_candidates): Add first_arg and return_type parms.
  2384. Add special constructor/conversion op handling.
  2385. (convert_class_to_reference): Use it.
  2386. (build_user_type_conversion_1): Likewise.
  2387. (build_op_call): Likewise.
  2388. (build_new_method_call): Likewise.
  2389. (build_new_op): Adjust.
  2390. (perform_overload_resolution): Adjust.
  2391. 2010-05-11 Paolo Carlini <paolo.carlini@oracle.com>
  2392. PR c++/34272
  2393. PR c++/43630
  2394. PR c++/34491
  2395. * pt.c (process_partial_specialization): Return error_mark_node
  2396. in case of unused template parameters in partial specialization.
  2397. 2010-05-11 Jakub Jelinek <jakub@redhat.com>
  2398. PR c++/44062
  2399. * semantics.c (finish_expr_stmt): Don't call mark_exp_read here...
  2400. * cvt.c (convert_to_void): ... but here. If expr is a COMPOUND_EXPR,
  2401. look at its second operand.
  2402. 2010-05-10 Jason Merrill <jason@redhat.com>
  2403. PR c++/44017
  2404. * semantics.c (baselink_for_fns): Revert earlier change.
  2405. PR c++/44045
  2406. * typeck.c (cp_build_modify_expr): Complain about assignment to
  2407. array from init list.
  2408. 2010-05-10 Fabien Chêne <fabien@gcc.gnu.org>
  2409. PR c++/43719
  2410. * decl.c (check_initializer): Strip array type before checking for
  2411. uninitialized const or ref members.
  2412. 2010-05-07 Fabien Chêne <fabien@gcc.gnu.org>
  2413. PR c++/43951
  2414. * init.c (diagnose_uninitialized_cst_or_ref_member_1): Returns the
  2415. error count. Emit errors only if compain is true.
  2416. (build_new_1): Do not return error_mark_node if
  2417. diagnose_uninitialized_cst_or_ref_member_1 does not diagnose any
  2418. errors. Delay the check for user-provided constructor.
  2419. (perform_member_init): Adjust.
  2420. * cp-tree.h (diagnose_uninitialized_cst_or_ref_member): Change the
  2421. prototype.
  2422. 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
  2423. Jason Merrill <jason@redhat.com>
  2424. Add support for C++0x nullptr.
  2425. * cp-tree.def: Add NULLPTR_TYPE.
  2426. * cp-tree.h: Add nullptr_node.
  2427. (cp_tree_index): Add CPTI_NULLPTR.
  2428. (SCALAR_TYPE_P): Add NULLPTR_TYPE.
  2429. * call.c (null_ptr_cst_p): Handle nullptr.
  2430. (standard_conversion): Likewise.
  2431. (convert_arg_to_ellipsis): Likewise.
  2432. * mangle.c (write_type): Likewise.
  2433. * name-lookup.c (arg_assoc_type): Likewise.
  2434. * parser.c (cp_parser_primary_expression): Likewise.
  2435. * typeck.c (cp_build_binary_op): Likewise.
  2436. (build_reinterpret_cast_1): Likewise.
  2437. * error.c (dump_type): Likewise.
  2438. (dump_type_prefix, dump_type_suffix): Likewise.
  2439. * decl.c (cxx_init_decl_processing): Likewise.
  2440. * cxx-pretty-print.c (pp_cxx_constant): Likewise.
  2441. * cvt.c (ocp_convert): Likewise.
  2442. * rtti.c (typeinfo_in_lib_p, emit_support_tinfos): Put
  2443. nullptr_t tinfo in libsupc++.
  2444. 2010-05-06 Jason Merrill <jason@redhat.com>
  2445. * semantics.c (simplify_aggr_init_expr): Use INIT_EXPR.
  2446. 2010-04-22 Jakub Jelinek <jakub@redhat.com>
  2447. Dodji Seketeli <dodji@redhat.com>
  2448. PR c/18624
  2449. * cp-tree.h (mark_exp_read, rvalue_use, lvalue_use, type_use):
  2450. Declare ...
  2451. * expr.c (mark_exp_read, rvalue_use, lvalue_use, type_use): ... new fns.
  2452. * typeck.c (cxx_sizeof_expr, cxx_alignof_expr): Call type_use.
  2453. (decay_conversion, perform_integral_promotions): Call rvalue_use.
  2454. (cp_build_unary_op): Call lvalue_use.
  2455. * decl.c (unused_but_set_errorcount): New variable.
  2456. (poplevel): Issue -Wunused-but-set-variable diagnostics.
  2457. (duplicate_decls): Merge DECL_READ_P flags.
  2458. (start_cleanup_fn): Set DECL_READ_P flag.
  2459. (finish_function): Issue -Wunused-but-set-parameter diagnostics.
  2460. * tree.c (rvalue): Call rvalue_use.
  2461. * pt.c (convert_nontype_argument): Likewise.
  2462. * semantics.c (finish_expr_stmt, finish_asm_stmt, finish_typeof,
  2463. finish_decltype_type): Likewise.
  2464. * call.c (convert_like_real) <ck_identity, ck_user>: Call rvalue use.
  2465. (build_x_va_arg, build_new_method_call, build_over_call): Call lvalue_use
  2466. or rvalue_use depending on the expr.
  2467. * init.c (build_new, build_delete): Likewise.
  2468. * rtti.c (build_typeid, build_dynamic_cast_1): Likewise.
  2469. 2010-05-05 Jason Merrill <jason@redhat.com>
  2470. PR c++/43787
  2471. * cp-gimplify.c (cp_gimplify_expr): Remove copies of empty classes.
  2472. * call.c (build_over_call): Don't try to avoid INIT_EXPR copies here.
  2473. 2010-05-04 Paolo Carlini <paolo.carlini@oracle.com>
  2474. PR c++/43028
  2475. * pt.c (unify): Check each elt for error_mark_node.
  2476. 2010-05-04 Jason Merrill <jason@redhat.com>
  2477. PR c++/38064
  2478. * typeck.c (cp_build_binary_op): Allow enums for <> as well.
  2479. 2010-05-04 Paolo Carlini <paolo.carlini@oracle.com>
  2480. PR c++/43705
  2481. * call.c (build_new_method_call): Return error_mark_node if fns is
  2482. NULL_TREE.
  2483. 2010-05-03 Dodji Seketeli <dodji@redhat.com>
  2484. PR c++/43953
  2485. * pt.c (most_specialized_class): Pretend we are processing
  2486. a template decl during the call to coerce_template_parms.
  2487. 2010-05-03 Jason Merrill <jason@redhat.com>
  2488. PR c++/42810
  2489. PR c++/43680
  2490. * decl.c (finish_enum): Use the TYPE_MIN_VALUE and TYPE_MAX_VALUE
  2491. from the selected underlying type unless -fstrict-enums. Set
  2492. ENUM_UNDERLYING_TYPE to have the restricted range.
  2493. * cvt.c (type_promotes_to): Use ENUM_UNDERLYING_TYPE.
  2494. * class.c (check_bitfield_decl): Likewise.
  2495. 2010-05-01 H.J. Lu <hongjiu.lu@intel.com>
  2496. PR c++/43951
  2497. * init.c (build_new_1): Revert the accidental checkin in
  2498. revision 158918.
  2499. 2010-04-30 Jason Merrill <jason@redhat.com>
  2500. PR c++/43868
  2501. * cxx-pretty-print.c (pp_cxx_decl_specifier_seq): Move pmf handling...
  2502. (pp_cxx_type_specifier_seq): ...here.
  2503. 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
  2504. * optimize.c, parser.c, mangle.c, cp-tree.h: Do not include varray.h.
  2505. * Make-lang.in: Don't include varray.h dependency in CXX_TREE_H.
  2506. 2010-04-30 Shujing Zhao <pearly.zhao@oracle.com>
  2507. PR c++/43779
  2508. * typeck.c (warn_args_num): New function.
  2509. (convert_arguments): Use warn_args_num to print the diagnostic
  2510. messages.
  2511. 2010-04-29 Fabien Chêne <fabien@gcc.gnu.org>
  2512. PR c++/43890
  2513. * init.c (diagnose_uninitialized_cst_or_ref_member): Check for
  2514. user-provided constructor while recursing.
  2515. 2010-04-28 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2516. PR c++/9335
  2517. * error.c (print_instantiation_partial_context_line): Handle
  2518. recursive instantiation.
  2519. (print_instantiation_partial_context): Likewise.
  2520. 2010-04-27 Jason Merrill <jason@redhat.com>
  2521. * init.c (perform_member_init): Check CLASS_TYPE_P.
  2522. 2010-04-27 Fabien Chêne <fabien@gcc.gnu.org>
  2523. PR c++/29043
  2524. * init.c (perform_member_init): Check for uninitialized const or
  2525. reference members, including array types.
  2526. 2010-04-24 Jason Merrill <jason@redhat.com>
  2527. * tree.c (get_fns): Split out from get_first_fn.
  2528. * cp-tree.h: Declare it.
  2529. * search.c (shared_member_p): Use it.
  2530. * semantics.c (finish_qualified_id_expr): Simplify.
  2531. (finish_id_expression): Simplify.
  2532. * semantics.c (finish_non_static_data_member): Call maybe_dummy_object
  2533. whenever object is NULL_TREE. Don't do 'this' capture here.
  2534. (finish_qualified_id_expr): Pass NULL_TREE.
  2535. (finish_id_expression): Likewise.
  2536. (lambda_expr_this_capture): Likewise.
  2537. * semantics.c (finish_qualified_id_expr): Use maybe_dummy_object
  2538. rather than checking current_class_ref directly.
  2539. (finish_call_expr): Likewise.
  2540. PR c++/43856
  2541. * name-lookup.c (qualify_lookup): Disqualify lambda op().
  2542. * class.c (current_nonlambda_class_type): New fn.
  2543. * semantics.c (nonlambda_method_basetype): New.
  2544. * cp-tree.h: Declare them.
  2545. * tree.c (maybe_dummy_object): Handle implicit 'this' capture.
  2546. * semantics.c (baselink_for_fns): Correct BASELINK_BINFO.
  2547. PR c++/43875
  2548. * semantics.c (lambda_return_type): Complain about
  2549. braced-init-list.
  2550. PR c++/43790
  2551. * tree.c (cv_unqualified): Handle error_mark_node.
  2552. PR c++/41468
  2553. * call.c (convert_like_real) [ck_ambig]: Just return error_mark_node
  2554. if we don't want errors.
  2555. PR c++/41468
  2556. * class.c (convert_to_base): Add complain parameter. Pass
  2557. ba_quiet to lookup_base if we don't want errors.
  2558. (build_vfield_ref): Pass complain to convert_to_base.
  2559. * call.c (convert_like_real): Likewise.
  2560. (initialize_reference): Likewise.
  2561. (perform_direct_initialization_if_possible): Pass complain to
  2562. convert_like_real.
  2563. * cp-tree.h: Adjust.
  2564. 2010-04-27 Fabien Chêne <fabien@gcc.gnu.org>
  2565. Jason Merrill <jason@redhat.com>
  2566. PR c++/42844
  2567. * decl.c (check_for_uninitialized_const_var): Handle classes that need
  2568. constructing, too.
  2569. (check_initializer): Call it for classes that need constructing, too.
  2570. * class.c (in_class_defaulted_default_constructor): New.
  2571. * cp-tree.h: Declare it.
  2572. 2010-04-20 Jason Merrill <jason@redhat.com>
  2573. PR c++/9335
  2574. * init.c (constant_value_1): Treat error_mark_node as a constant
  2575. if DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P is set.
  2576. * cvt.c (ocp_convert): Handle getting error_mark_node from
  2577. integral_constant_value.
  2578. * decl.c (compute_array_index_type): Likewise.
  2579. 2010-04-20 Dodji Seketeli <dodji@redhat.com>
  2580. PR c++/43800
  2581. PR c++/43704
  2582. * typeck.c (incompatible_dependent_types_p): If one of the
  2583. compared types if not a typedef then honour their main variant
  2584. equivalence.
  2585. 2010-04-20 Jakub Jelinek <jakub@redhat.com>
  2586. * cp-tree.h (TYPE_REF_IS_RVALUE): Remove.
  2587. 2010-04-19 Dodji Seketeli <dodji@redhat.com>
  2588. PR c++/43704
  2589. * typeck.c (structural_comptypes): Test dependent typedefs
  2590. incompatibility before testing for their main variant based
  2591. equivalence.
  2592. 2010-04-19 Jakub Jelinek <jakub@redhat.com>
  2593. * cp-tree.h (SCOPED_ENUM_P, UNSCOPED_ENUM_P, SET_SCOPED_ENUM_P): Use
  2594. ENUM_IS_SCOPED bit instead of TYPE_LANG_FLAG_5.
  2595. 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
  2596. * decl.c (cxx_init_decl_processing): Remove second argument in call to
  2597. build_common_tree_nodes.
  2598. 2010-04-14 Jason Merrill <jason@redhat.com>
  2599. PR c++/36625
  2600. * parser.c (cp_parser_parenthesized_expression_list): Change
  2601. is_attribute_list parm to int to indicate whether or not to
  2602. handle initial identifier specially.
  2603. (cp_parser_attribute_list): Use attribute_takes_identifier_p.
  2604. 2010-04-13 Jason Merrill <jason@redhat.com>
  2605. * call.c (type_decays_to): Check MAYBE_CLASS_TYPE_P instead of
  2606. CLASS_TYPE_P.
  2607. * parser.c (cp_parser_lambda_expression): Complain about lambda in
  2608. unevaluated context.
  2609. * pt.c (iterative_hash_template_arg): Don't crash on lambda.
  2610. 2010-04-12 Jason Merrill <jason@redhat.com>
  2611. PR c++/43641
  2612. * semantics.c (maybe_add_lambda_conv_op): Use build_call_a and tweak
  2613. return value directly.
  2614. * call.c (type_decays_to): Call cv_unqualified for non-class type.
  2615. 2010-04-12 Fabien Chêne <fabien@gcc.gnu.org>>
  2616. PR c++/25811
  2617. * cp-tree.h (diagnose_uninitialized_cst_or_ref_member): Declare.
  2618. * init.c (build_new_1): Check for uninitialized const members and
  2619. uninitialized reference members, when using new without
  2620. new-initializer. Call diagnose_uninitialized_cst_or_ref_member.
  2621. (diagnose_uninitialized_cst_or_ref_member): Define, call
  2622. diagnose_uninitialized_cst_or_ref_member_1.
  2623. (diagnose_uninitialized_cst_or_ref_member_1): New function.
  2624. 2010-04-12 Richard Guenther <rguenther@suse.de>
  2625. PR c++/43611
  2626. * semantics.c (expand_or_defer_fn_1): Do not keep extern
  2627. template inline functions.
  2628. 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2629. PR c++/28584
  2630. * typeck.c (cp_build_c_cast): Warn for casting integer to larger
  2631. pointer type.
  2632. 2010-04-07 Jason Merrill <jason@redhat.com>
  2633. PR c++/43016
  2634. * decl.c (start_preparsed_function): Do defer nested functions.
  2635. PR c++/11094, DR 408
  2636. * cp-tree.h (VAR_HAD_UNKNOWN_BOUND, SET_VAR_HAD_UNKNOWN_BOUND): New.
  2637. * decl2.c (finish_static_data_member_decl): Set it.
  2638. * decl.c (duplicate_decls): Propagate it.
  2639. * pt.c (tsubst_decl): Don't substitute the domain of an array
  2640. VAR_DECL if it's set.
  2641. (regenerate_decl_from_template): Substitute it here.
  2642. (type_dependent_expression_p): Return true if it's set.
  2643. * semantics.c (finish_decltype_type): Instantiate such a variable.
  2644. * typeck.c (cxx_sizeof_expr): Likewise.
  2645. (strip_array_domain): New.
  2646. PR c++/43145
  2647. * name-lookup.c (current_decl_namespace): Non-static.
  2648. (pop_nested_namespace): Sanity check.
  2649. * cp-tree.h: Declare current_decl_namespace.
  2650. * decl.c (grokvardecl): Use it instead of current_namespace.
  2651. (grokfndecl): Likewise.
  2652. PR c++/38392
  2653. * pt.c (tsubst_friend_function): Instatiate a friend that has already
  2654. been used.
  2655. * pt.c (print_template_statistics): New.
  2656. * cp-tree.h: Declare it.
  2657. * tree.c (cxx_print_statistics): Call it.
  2658. PR c++/41970
  2659. * decl.c (grokvardecl): Tweak warning message.
  2660. (grokfndecl): Likewise.
  2661. 2010-04-07 Dodji Seketeli <dodji@redhat.com>
  2662. PR c++/42697
  2663. *pt.c (tsubst_decl): Get the arguments of a specialization from
  2664. the specialization template, not from the most general template.
  2665. 2010-04-07 Dodji Seketeli <dodji@redhat.com>
  2666. PR c++/40239
  2667. * typeck2.c (process_init_constructor_record):
  2668. value-initialize members that are are not explicitely
  2669. initialized.
  2670. 2010-04-07 Jie Zhang <jie@codesourcery.com>
  2671. PR c++/42556
  2672. * typeck2.c (split_nonconstant_init_1): Drop empty CONSTRUCTOR
  2673. when all of its elements are non-constant and have been split out.
  2674. 2010-04-06 Taras Glek <taras@mozilla.com>
  2675. Jason Merrill <jason@redhat.com>
  2676. * parser.c (cp_parser_class_specifier): Set class location to that
  2677. of IDENTIFIER_NODE instead of '{' when possible.
  2678. * semantics.c (begin_class_definition): Do not overide locations
  2679. with less precise ones.
  2680. 2010-04-06 Jason Merrill <jason@redhat.com>
  2681. PR c++/43648
  2682. * name-lookup.c (constructor_name_p): Allow X::~X even for typedefs.
  2683. PR c++/43621
  2684. * pt.c (maybe_update_decl_type): Check the return value from
  2685. push_scope.
  2686. 2010-04-01 Jason Merrill <jason@redhat.com>
  2687. * decl.c (next_initializable_field): No longer static.
  2688. * cp-tree.h: Declare it.
  2689. * call.c (build_aggr_conv): Fail if there are more initializers
  2690. than initializable fields.
  2691. * semantics.c (maybe_add_lambda_conv_op): Use null_pointer_node
  2692. instead of void_zero_node.
  2693. 2010-03-31 Dodji Seketeli <dodji@redhat.com>
  2694. PR c++/43558
  2695. * cp-tree.h (TEMPLATE_TYPE_PARM_SIBLING_PARMS): New accessor macro.
  2696. * pt.c (end_template_parm_list): Store sibling template parms of
  2697. each TEMPLATE_TYPE_PARMs into its TEMPLATE_TYPE_PARM_SIBLING_PARMS.
  2698. (push_template_decl_real): Don't store the containing template decl
  2699. into the DECL_CONTEXT of TEMPLATE_TYPE_PARMs anymore.
  2700. * typeck.c (get_template_parms_of_dependent_type): Get sibling parms
  2701. of a TEMPLATE_TYPE_PARM from TEMPLATE_TYPE_PARM_SIBLING_PARMS.
  2702. Simplify the logic.
  2703. 2010-03-30 Jason Merrill <jason@redhat.com>
  2704. PR c++/43076
  2705. * pt.c (push_template_decl_real): Deal better with running out of
  2706. scopes before running out of template parms.
  2707. PR c++/41185
  2708. PR c++/41786
  2709. * parser.c (cp_parser_direct_declarator): Don't allow VLAs in
  2710. function parameter context. Don't print an error if parsing
  2711. tentatively.
  2712. PR c++/43559
  2713. * pt.c (more_specialized_fn): Don't control cv-qualifier check
  2714. with same_type_p.
  2715. 2010-03-26 Jason Merrill <jason@redhat.com>
  2716. PR c++/43509
  2717. * parser.c (cp_parser_qualifying_entity): Do accept enum names in
  2718. c++0x mode, but not other type-names.
  2719. 2010-03-26 Dodji Seketeli <dodji@redhat.com>
  2720. PR c++/43327
  2721. * pt.c (add_to_template_args): Support NULL ARGS;
  2722. (most_specialized_class): call coerce_template_parms on
  2723. template arguments passed to get_class_bindings. Use
  2724. add_to_template_args.
  2725. (unify): Handle VAR_DECLs.
  2726. 2010-03-26 Dodji Seketeli <dodji@redhat.com>
  2727. * cp-tree.h (get_template_parms_at_level): Change unsigned parm
  2728. into int.
  2729. * pt.c (get_template_parms_at_level): Adjust.
  2730. 2010-03-25 Dodji Seketeli <dodji@redhat.com>
  2731. PR c++/43206
  2732. * cp-tree.h (get_template_parms_at_level): Declare ...
  2733. * pt.c (get_template_parms_at_level): ... new function.
  2734. * typeck.c (get_template_parms_of_dependent_type): If a template
  2735. type parm's DECL_CONTEXT isn't yet set, get its siblings from
  2736. current_template_parms. Use get_template_parms_at_level. Remove
  2737. useless test.
  2738. (incompatible_dependent_types_p): If we get empty parms from just one
  2739. of the template type parms we are comparing then the template parms are
  2740. incompatible.
  2741. 2010-03-24 Jason Merrill <jason@redhat.com>
  2742. PR c++/43502
  2743. * parser.c (make_declarator): Initialize id_loc.
  2744. (cp_parser_lambda_declarator_opt): And set it.
  2745. 2010-03-23 Jason Merrill <jason@redhat.com>
  2746. Make lambda conversion op and op() non-static.
  2747. * semantics.c (maybe_add_lambda_conv_op): Make non-static.
  2748. Also add the thunk function returned by the conversion op.
  2749. Mark the conversion deleted if the op() is variadic.
  2750. * decl2.c (mark_used): Give helpful message about deleted conversion.
  2751. * parser.c (cp_parser_lambda_declarator_opt): Don't make op() static.
  2752. * semantics.c (finish_this_expr): Adjust.
  2753. * mangle.c (write_closure_type_name): Adjust.
  2754. * decl.c (grok_op_properties): Don't allow it.
  2755. * call.c (build_user_type_conversion_1): No static conversion ops.
  2756. (build_op_call): Or op().
  2757. * decl2.c (change_return_type): Fix 'this' quals.
  2758. 2010-03-22 Jason Merrill <jason@redhat.com>
  2759. PR c++/43333
  2760. * tree.c (pod_type_p): Use old meaning in C++98 mode.
  2761. PR c++/43281
  2762. * pt.c (contains_auto_r): New fn.
  2763. (do_auto_deduction): Use it.
  2764. (tsubst): Don't look at TREE_TYPE of a TEMPLATE_TYPE_PARM.
  2765. 2010-03-20 Simon Martin <simartin@users.sourceforge.net>
  2766. PR c++/43081:
  2767. * decl2.c (grokfield): Handle invalid initializers for member
  2768. functions.
  2769. 2010-03-20 Dodji Seketeli <dodji@redhat.com>
  2770. PR c++/43375
  2771. * method.c (make_alias_for): Avoid crashing when DECL_LANG_SPECIFIC
  2772. is NULL.
  2773. * decl2.c (vague_linkage_p): Likewise.
  2774. 2010-03-18 Paolo Carlini <paolo.carlini@oracle.com>
  2775. PR c++/43418
  2776. * parser.c (cp_parser_for_init_statement): Use NULL_TREE, not
  2777. false, in the cp_parser_expression_statement call.
  2778. 2010-03-05 Jason Merrill <jason@redhat.com>
  2779. * mangle.c (mangle_decl): Give name collision error even without
  2780. ASM_OUTPUT_DEF.
  2781. 2010-03-04 Marco Poletti <poletti.marco@gmail.com>
  2782. * pt.c (process_partial_specialization): Use error_n instead of
  2783. error.
  2784. 2010-03-03 Jason Merrill <jason@redhat.com>
  2785. PR c++/12909
  2786. * mangle.c (mangle_decl): Handle VAR_DECL, too.
  2787. 2010-03-03 Jason Merrill <jason@redhat.com>
  2788. PR c++/12909
  2789. * mangle.c: Include cgraph.h.
  2790. (mangle_decl): If the mangled name will change in a later
  2791. ABI version, make the later mangled name an alias.
  2792. * method.c (make_alias_for): Copy DECL_ARGUMENTS.
  2793. * Make-lang.in (mangle.o): Depend on cgraph.h.
  2794. * method.c (make_alias_for): Handle VAR_DECL, too.
  2795. * decl2.c (vague_linkage_p): Rename from vague_linkage_fn_p.
  2796. * tree.c (no_linkage_check): Adjust.
  2797. * decl.c (maybe_commonize_var): Adjust.
  2798. * cp-tree.h: Adjust.
  2799. 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
  2800. * pt.c (redeclare_class_template): Use error_n and inform_n.
  2801. 2010-02-27 Mark Mitchell <mark@codesourcery.com>
  2802. PR c++/42748
  2803. * cp-tree.h (push_tinst_level): Declare.
  2804. (pop_tinst_level): Likewise.
  2805. * pt.c (push_tinst_level): Give it external linkage.
  2806. (pop_tinst_level): Likewise.
  2807. * mangle.c (mangle_decl_string): Set the source location to that
  2808. of the decl while mangling.
  2809. 2010-02-27 Simon Martin <simartin@users.sourceforge.net>
  2810. PR c++/42054
  2811. * pt.c (redeclare_class_template): Return false if there are erroneous
  2812. template parameters.
  2813. 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2814. * pt.c (push_tinst_level): Replace -ftemplate-depth- with
  2815. -ftemplate-depth=.
  2816. 2010-02-24 Jason Merrill <jason@redhat.com>
  2817. PR c++/12909
  2818. * mangle.c (write_type): Give -Wabi warning for old vector mangling.
  2819. * class.c (layout_class_type): Don't give -Wabi warning for a bug
  2820. in a previous ABI version.
  2821. 2010-02-23 Jason Merrill <jason@redhat.com>
  2822. PR c++/43143
  2823. * typeck2.c (digest_init_r): Accept value init of array.
  2824. 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2825. PR c++/43126
  2826. * typeck.c (convert_arguments): Update error message.
  2827. 2010-02-22 Mike Stump <mikestump@comcast.net>
  2828. PR c++/43125
  2829. * decl.c (duplicate_decls): Merge DECL_PRESERVE_P.
  2830. 2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2831. PR c++/23510
  2832. * error.c (print_instantiation_partial_context_line): New.
  2833. (print_instantiation_partial_context): Print at most 12 contexts,
  2834. skip the rest with a message.
  2835. 2010-02-21 Dodji Seketeli <dodji@redhat.com>
  2836. PR c++/42824
  2837. * pt.c (lookup_template_class): Better support of specialization
  2838. of member of class template implicit instantiation.
  2839. 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
  2840. PR c++/35669
  2841. * call.c (conversion_null_warnings): Replace -Wconversion with
  2842. -Wconversion-null.
  2843. * cvt.c (build_expr_type_conversion): Likewise.
  2844. 2010-02-18 Jason Merrill <jason@redhat.com>
  2845. PR c++/42837
  2846. * class.c (create_vtable_ptr): Set DECL_PACKED if type is packed.
  2847. PR c++/43108
  2848. * typeck.c (cp_build_binary_op): Adapt mixed complex/non handling from
  2849. C build_binary_op.
  2850. * cp-tree.h (WANT_VECTOR_OR_COMPLEX): Rename from WANT_VECTOR.
  2851. * cvt.c (build_expr_type_conversion): Allow COMPLEX_TYPE.
  2852. PR c++/43070
  2853. * semantics.c (finish_goto_stmt): Don't call decay_conversion.
  2854. PR c++/26261
  2855. PR c++/43101
  2856. * pt.c (tsubst_qualified_id): Do normal lookup in non-dependent scope.
  2857. (maybe_update_decl_type): New fn.
  2858. * parser.c (cp_parser_init_declarator): Use it.
  2859. PR c++/43109
  2860. * semantics.c (begin_class_definition): Don't crash on unnamed ns.
  2861. 2010-02-17 Jason Merrill <jason@redhat.com>
  2862. PR c++/43075
  2863. * call.c (build_over_call): Don't create zero-sized assignments.
  2864. * cp-gimplify.c (cp_genericize_r): Don't remove them here.
  2865. * cp-objcp-common.c (cp_expr_size): Remove.
  2866. * cp-tree.h: Remove prototype.
  2867. PR c++/43069
  2868. * name-lookup.c (set_decl_namespace): Don't copy DECL_CONTEXT if the
  2869. decl we looked up doesn't match.
  2870. PR c++/43093
  2871. * cp-gimplify.c (cp_gimplify_expr) [INIT_EXPR]: Return if we don't
  2872. have an INIT_EXPR anymore.
  2873. PR c++/43079
  2874. * pt.c (convert_nontype_argument): Change assert to test.
  2875. 2010-02-16 Jason Merrill <jason@redhat.com>
  2876. * cp-gimplify.c (cp_gimplify_expr): Fix error recovery.
  2877. PR c++/43031
  2878. * cp-gimplify.c (cp_gimplify_expr) [MODIFY_EXPR]: Use
  2879. VIEW_CONVERT_EXPR for conversions between structural equality types
  2880. that the back end can't tell are the same.
  2881. PR c++/43036
  2882. * tree.c (build_cplus_array_type): Set TYPE_MAIN_VARIANT to strip
  2883. cv-quals from element here.
  2884. (cp_build_qualified_type_real): Not here. Preserve typedef name.
  2885. 2010-02-14 Jason Merrill <jason@redhat.com>
  2886. PR c++/41997
  2887. * semantics.c (finish_compound_literal): Use
  2888. cp_apply_type_quals_to_decl when creating a static variable.
  2889. 2010-02-12 Jason Merrill <jason@redhat.com>
  2890. PR c++/43024
  2891. * name-lookup.h (current_binding_level): Check for null
  2892. cp_function_chain.
  2893. 2010-02-12 Jason Merrill <jason@redhat.com>
  2894. PR c++/43054
  2895. * tree.c (cp_tree_equal): Correct CALL_EXPR logic.
  2896. 2010-02-12 Jakub Jelinek <jakub@redhat.com>
  2897. PR c++/43033
  2898. * name-lookup.c (pushdecl_maybe_friend): Check default args of t
  2899. instead of x.
  2900. 2010-02-10 Jason Merrill <jason@redhat.com>
  2901. PR c++/41896
  2902. * semantics.c (outer_lambda_capture_p): Revert.
  2903. (add_capture): Only finish_member_declaration if
  2904. we're in the lambda class.
  2905. (register_capture_members): New.
  2906. * cp-tree.h: Declare it.
  2907. * parser.c (cp_parser_lambda_expression): Call it.
  2908. 2010-02-10 Jason Merrill <jason@redhat.com>
  2909. PR c++/41896
  2910. * semantics.c (outer_lambda_capture_p): Use current_function_decl
  2911. instead of current_class_type.
  2912. 2010-02-10 Jason Merrill <jason@redhat.com>
  2913. PR c++/42983, core issue 906
  2914. * method.c (defaultable_fn_check): Check virtualness.
  2915. 2010-02-10 Jason Merrill <jason@redhat.com>
  2916. PR c++/43016
  2917. * semantics.c (maybe_add_lambda_conv_op): Set DECL_INTERFACE_KNOWN.
  2918. 2010-02-10 Shujing Zhao <pearly.zhao@oracle.com>
  2919. * Make-lang.in (cp/cvt.o, cp/parser.o, cp/search.o): Depend on intl.h.
  2920. * cvt.c (warn_ref_binding): Wrap the messages into G_() for easy
  2921. translation.
  2922. * parser.c (cp_parser_postfix_expression, cp_parser_new_type_id)
  2923. (cp_parser_cast_expression, cp_parser_condition, cp_parser_decltype)
  2924. (cp_parser_parameter_declaration)
  2925. (cp_parser_exception_specification_opt)
  2926. (cp_parser_exception_declaration): Likewise.
  2927. * pt.c (check_default_tmpl_args): Likewise.
  2928. * search.c (lookup_field_r): Likewise.
  2929. 2010-02-09 Jason Merrill <jason@redhat.com>
  2930. PR c++/42399
  2931. * pt.c (tsubst_copy_and_build): Propagate LAMBDA_EXPR_LOCATION.
  2932. 2010-02-09 Jason Merrill <jason@redhat.com>
  2933. PR c++/42370
  2934. * decl2.c (change_return_type): New fn.
  2935. * semantics.c (apply_lambda_return_type): Use it.
  2936. * cp-tree.h: Declare it.
  2937. 2010-02-05 Richard Guenther <rguenther@suse.de>
  2938. * Make-lang.in (cp/cp-lang.o): Depend on gt-cp-cp-lang.h.
  2939. * cp-lang.c: Include gt-cp-cp-lang.h.
  2940. * config-lang.in (gtfiles): Add cp/cp-lang.c.
  2941. 2010-02-05 Dodji Seketeli <dodji@redhat.com>
  2942. PR c++/42915
  2943. * typeck.c (get_template_parms_of_dependent_type): Try getting
  2944. the template parameters fromt the type itself first.
  2945. 2010-02-03 Jason Merrill <jason@redhat.com>
  2946. PR c++/4926
  2947. PR c++/38600
  2948. * mangle.c (write_unqualified_id): Split out from write_expression.
  2949. (write_unqualified_name): Call it.
  2950. (write_member_name): Likewise.
  2951. (write_expression): Support TEMPLATE_ID_EXPR.
  2952. Disambiguate operator names.
  2953. PR c++/12909
  2954. * mangle.c (write_type) [VECTOR_TYPE]: Change mangling with
  2955. -fabi-version=4.
  2956. 2010-02-02 Jason Merrill <jason@redhat.com>
  2957. PR c++/41090
  2958. * decl.c (cp_finish_decl): Add local statics to cfun->local_decls.
  2959. * optimize.c (clone_body): Remap their initializers when making base
  2960. variants.
  2961. (maybe_clone_body): Complain if multiple clones aren't safe.
  2962. 2010-01-29 Dodji Seketeli <dodji@redhat.com>
  2963. PR c++/42758
  2964. PR c++/42634
  2965. PR c++/42336
  2966. PR c++/42797
  2967. PR c++/42880
  2968. * cp-tree.h (NON_DEFAULT_TEMPLATE_ARGS_COUNT,
  2969. SET_NON_DEFAULT_TEMPLATE_ARGS_COUNT,
  2970. GET_NON_DEFAULT_TEMPLATE_ARGS_COUNT): New accessor macros.
  2971. * pt.c (coerce_template_parms, type_unification_real,
  2972. expand_template_argument_pack, coerce_template_parameter_pack):
  2973. Set the non default template args count.
  2974. (current_template_args): Always set non defaulted
  2975. template args count when compiled with --enable-checking
  2976. (tsubst_template_args, type_unification_real): Propagate the non
  2977. defaulted template args count.
  2978. * error.c (get_non_default_template_args_count): Renamed
  2979. count_non_default_template_args into this. Don't calculate the
  2980. non default template argument count anymore. Use the new
  2981. accessor macros above to get it.
  2982. (dump_template_argument_list, dump_type, dump_decl,
  2983. dump_template_parms): Adjust.
  2984. * parser.c (cp_parser_template_argument_list): Always set defaulted
  2985. template args count when compiled with --enable-checking.
  2986. 2010-01-29 Shujing Zhao <pearly.zhao@oracle.com>
  2987. * decl.c (redeclaration_error_message): Wrap the return messages into
  2988. G_() for easy translation.
  2989. 2010-01-28 Jason Merrill <jason@redhat.com>
  2990. PR c++/42880
  2991. * semantics.c (begin_class_definition): Don't use type_as_string.
  2992. 2010-01-28 Dodji Seketeli <dodji@redhat.com>
  2993. PR c++/42713
  2994. PR c++/42820
  2995. * typeck.c (get_template_parms_of_dependent_type): Factorized
  2996. this out of incompatible_template_type_parms_p
  2997. (incompatible_dependent_types_p): Renamed
  2998. incompatible_template_type_parms_p into this. Make it detect
  2999. two incompatible dependent typedefs too.
  3000. (structural_comptypes): Use incompatible_dependent_types_p.
  3001. * pt.c (get_template_info):
  3002. Handle BOUND_TEMPLATE_TEMPLATE_PARAM.
  3003. 2010-01-20 Janis Johnson <janis187@us.ibm.com>
  3004. Jason Merrill <jason@redhat.com>
  3005. * mangle.c (write_type): Mangle transparent record as member type.
  3006. * semantics.c (begin_class_definition): Recognize decimal classes
  3007. and set TYPE_TRANSPARENT_AGGR.
  3008. 2010-01-20 Jason Merrill <jason@redhat.com>
  3009. PR c++/42338
  3010. * mangle.c (write_expression): Handle tree codes that have extra
  3011. arguments in the middle-end.
  3012. 2010-01-20 Paolo Carlini <paolo.carlini@oracle.com>
  3013. PR c++/42038
  3014. * except.c (expand_start_catch_block): Deal correctly with
  3015. do_begin_catch returning error_mark_node.
  3016. 2010-01-20 Jason Merrill <jason@redhat.com>
  3017. PR c++/41788
  3018. * class.c (layout_class_type): Set packed_maybe_necessary for packed
  3019. non-PODs.
  3020. PR c++/41920
  3021. * semantics.c (build_lambda_object): Call mark_used on captured
  3022. variables.
  3023. PR c++/40750
  3024. * decl.c (grokdeclarator): Clear type_quals for a member function
  3025. declared using a typedef. Don't complain about adding cv-quals
  3026. to a function typedef in C++0x mode.
  3027. 2010-01-20 Jakub Jelinek <jakub@redhat.com>
  3028. * decl.c (create_array_type_for_decl): Remove set but not used
  3029. variable error_msg. Remove break stmts after return stmts.
  3030. 2010-01-19 Dodji Seketeli <dodji@redhat.com>
  3031. * error.c (dump_template_parms, count_non_default_template_args):
  3032. Revert fix of PR c++/42634.
  3033. 2010-01-18 Dodji Seketeli <dodji@redhat.com>
  3034. PR c++/42634
  3035. * error.c (dump_template_parms): Use innermost template
  3036. arguments before calling count_non_default_template_args.
  3037. (count_non_default_template_args): We are being called with
  3038. template innermost arguments now. There is no need to ensure
  3039. that again.
  3040. 2010-01-18 Dodji Seketeli <dodji@redhat.com>
  3041. PR c++/42766
  3042. * cvt.c (build_expr_type_conversion): Look through OVERLOAD.
  3043. 2010-01-17 Dodji Seketeli <dodji@redhat.com>
  3044. PR c++/42697
  3045. *pt.c (tsubst_decl): Revert commit for PR c++/42697.
  3046. 2010-01-17 Dodji Seketeli <dodji@redhat.com>
  3047. PR c++/42697
  3048. *pt.c (tsubst_decl): Get the arguments of a specialization from
  3049. the specialization template, not from the most general template.
  3050. 2010-01-16 Jason Merrill <jason@redhat.com>
  3051. PR c++/42761
  3052. * semantics.c (finish_decltype_type): Within a template, treat
  3053. unresolved CALL_EXPR as dependent.
  3054. 2010-01-15 Dodji Seketeli <dodji@redhat.com>
  3055. * error.c (dump_template_parms,count_non_default_template_args):
  3056. Revert changes of PR c++/42634.
  3057. 2010-01-14 Jakub Jelinek <jakub@redhat.com>
  3058. PR middle-end/42674
  3059. * decl.c (finish_function): Don't emit -Wreturn-type warnings in
  3060. functions with noreturn attribute.
  3061. 2010-01-14 Jason Merrill <jason@redhat.com>
  3062. PR c++/42701
  3063. * call.c (build_new_method_call): Don't free the vec here.
  3064. PR c++/42655
  3065. * call.c (convert_like_real): Do full decay_conversion for ck_rvalue.
  3066. 2010-01-13 Dodji Seketeli <dodji@redhat.com>
  3067. PR c++/42634
  3068. * error.c (dump_template_parms): Use innermost template
  3069. arguments before calling count_non_default_template_args.
  3070. (count_non_default_template_args): We are being called with
  3071. template innermost arguments now. There is no need to ensure
  3072. that again.
  3073. 2010-01-07 Dodji Seketeli <dodji@redhat.com>
  3074. c++/40155
  3075. * pt.c (unify_pack_expansion): In non-deduced contexts, re-use template
  3076. arguments that were previously deduced.
  3077. 2010-01-05 Jason Merrill <jason@redhat.com>
  3078. * pt.c (unify_pack_expansion): Handle deduction from init-list.
  3079. * call.c (build_over_call): Don't complain about it.
  3080. 2010-01-04 Jason Merrill <jason@redhat.com>
  3081. PR c++/42555
  3082. * pt.c (tsubst_decl): Don't apply type attributes in place.
  3083. PR c++/42567
  3084. * semantics.c (describable_type): Remove decltype comment and
  3085. semantics.
  3086. Copyright (C) 2010 Free Software Foundation, Inc.
  3087. Copying and distribution of this file, with or without modification,
  3088. are permitted in any medium without royalty provided the copyright
  3089. notice and this notice are preserved.