[PATCH] PR10405 Missing actual type (aka) in error message when using decltype as a template parameter

Nikola Smiljanić popizdeh at gmail.com
Fri Jun 12 03:08:45 PDT 2015


It's been some time since we looked at this.

I'm having issues addressing your last comment, non type template parameters. What's the idea here, to turn A<1+2> into A<int>? While tinkering with this I managed to produce desugar A<1+2> as A<3> by accident so I'm not really sure what you meant.

I was surprised to see that both A<1> and A<1+2> have a TemplateArgument with Expression kind. Having 'aka A<int>' for each A<1> seems too spammy but I couldn't figure out how to differentiate them.


http://reviews.llvm.org/D3588

Files:
  lib/AST/ASTDiagnostic.cpp
  test/ASTMerge/function.c
  test/Misc/diag-aka-types.cpp
  test/Sema/pointer-addition.c
  test/SemaTemplate/class-template-id.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D3588.27568.patch
Type: text/x-patch
Size: 7916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150612/700dba86/attachment.bin>


More information about the cfe-commits mailing list