[PATCH] D49439: [Sema] Fix a crash while converting constructors to deduction guides

2018-07-27 Thread Phabricator via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC338165: [Sema] Use a TreeTransform to extract deduction guide parameter types (authored by epilk, committed by ). Changed prior to commit: https://reviews.llvm.org/D49439?vs=157309&id=157767#toc Reposi

[PATCH] D49439: [Sema] Fix a crash while converting constructors to deduction guides

2018-07-27 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith accepted this revision. rsmith added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Sema/SemaTemplate.cpp:1899-1907 // Canonicalize the type. This (for instance) replaces references to // typedef members of the current ins

[PATCH] D49439: [Sema] Fix a crash while converting constructors to deduction guides

2018-07-25 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington updated this revision to Diff 157309. erik.pilkington added a comment. Implement @rsmith's second suggestion. Thanks! https://reviews.llvm.org/D49439 Files: clang/lib/Sema/SemaTemplate.cpp clang/test/SemaCXX/cxx1z-class-template-argument-deduction.cpp Index: clang/test/Sema

[PATCH] D49439: [Sema] Fix a crash while converting constructors to deduction guides

2018-07-25 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added inline comments. Comment at: clang/lib/Sema/SemaTemplate.cpp:1899-1907 // Canonicalize the type. This (for instance) replaces references to // typedef members of the current instantiations with the definitions of // those typedefs, avoiding tr

[PATCH] D49439: [Sema] Fix a crash while converting constructors to deduction guides

2018-07-17 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: clang/lib/Sema/SemaTemplate.cpp:1899-1907 // Canonicalize the type. This (for instance) replaces references to // typedef members of the current instantiations with the definitions of // those typedefs, avoiding triggering

[PATCH] D49439: [Sema] Fix a crash while converting constructors to deduction guides

2018-07-17 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington created this revision. erik.pilkington added a reviewer: rsmith. Herald added a reviewer: javed.absar. Herald added subscribers: dexonsmith, kristof.beyls. The problem was with constructors that have parameters that refer to previous ones, such as `D` below: template struct A