Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report error messages for all unmatched templates. #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sparverius
Copy link
Contributor

Just a possibility...

If there are reasons against doing so? Or perhaps, something I have overlooked i.e. targeting c++ templates, etc.

At the very least, we can output some warning message at this location, here

The nice thing about throwing an exception is that we will not waste time emitting code when we know that the emitted code will throw error(s) from gcc or the like.

The only thing remaining is to remove the file that was opened earlier in ccomp phase in the event that this exception gets thrown.

@sparverius
Copy link
Contributor Author

It’s worth noting that this would work with ats2 as well

@githwxi
Copy link
Owner

githwxi commented May 14, 2019

It is good that you took the initiative. I will find some time to read the source.
I may be able to print out a trace showing in some details the failure of compiling a particular template instance.

@ashalkhakov
Copy link

I like the idea. Finding ATS templates that need to be implemented based on the generated C code is time-consuming.

@githwxi
Copy link
Owner

githwxi commented May 27, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants