Re: No completion candidates for a template case
Eric Ludlam <[email protected]> Fri, 16 Oct 2015 08:10:43 -0400
| Newsgroups | gmane.emacs.semantic |
|---|---|
| Message-ID | <[email protected]> |
On 10/09/2015 07:22 PM, Liang Wang wrote:
> Hi,
>
> In the following c++ case, there is no completion candidates for local
> variable b in the main function. I'm new to semantic. Can someone tell
> me where I should start looking in the source code to debug this
> problem?
>
[...]
>
> template<typename T>
> class B : public A<T, isPodLike<T>::value> { // A<T, true> works
> public:
> void bar() {}
> };
[...]
>
> I tried M-x semantic-analyze-current-context and here is the first
> part of output. It seems that prefix types are not found for b.
>
> Context Type: #<semantic-analyze-context semantic-analyze-context>
> Bounds: (396 . 396)
> Prefix: B b
> ""
Hi,
The semantic parser is failing on the "isPodLike" part of the template
specifier.
I poked at it a bit, but I don't have a quick fix. Someone will need to
update 'template-var' rule in c.by to update what it can handle. I'll
try to get to that later today.
Eric
------------------------------------------------------------------------------